Drake
road_odometry.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace drake {
8 namespace automotive {
9 
12 template <typename T>
13 struct RoadOdometry {
15  RoadOdometry() = default;
18  const systems::rendering::FrameVelocity<T>& frame_velocity)
19  : lane(road_position.lane), pos(road_position.pos), vel(frame_velocity) {}
20 
24 };
25 
26 } // namespace automotive
27 } // namespace drake
Definition: automotive_demo.cc:88
RoadOdometry contains the position of the vehicle with respect to a lane in a road, along with its velocity vector in the world frame.
Definition: road_odometry.h:13
maliput::api::LanePosition pos
Definition: road_odometry.h:22
RoadOdometry(const maliput::api::RoadPosition &road_position, const systems::rendering::FrameVelocity< T > &frame_velocity)
Fully-parameterized constructor.
Definition: road_odometry.h:17
A Lane represents a lane of travel in a road network.
Definition: lane.h:32
const maliput::api::Lane * lane
Definition: road_odometry.h:21
RoadOdometry()=default
Default constructor.
systems::rendering::FrameVelocity< T > vel
Definition: road_odometry.h:23
A 3-dimensional position in a Lane-frame, consisting of three components:
Definition: lane_data.h:187
A 6-vector representing the derivatives of the position transform of frame A in the world frame...
Definition: frame_velocity.h:22
A position in the road network, consisting of a pointer to a specific Lane and a Lane-frame position ...
Definition: lane_data.h:258