33 namespace vm = visualization_msgs;
34 namespace mnm = marti_nav_msgs;
38 static geometry_msgs::Point
makePoint(
const double x,
const double y)
40 geometry_msgs::Point pt;
50 const mnm::RouteSpeedArray &speeds,
53 m.header.frame_id = route.
header.frame_id;
57 m.type = vm::Marker::LINE_LIST;
58 m.action = vm::Marker::ADD;
59 m.pose.position.x = 0.0;
60 m.pose.position.y = 0.0;
61 m.pose.position.z = 0.0;
62 m.pose.orientation.x = 0.0;
63 m.pose.orientation.y = 0.0;
64 m.pose.orientation.z = 0.0;
65 m.pose.orientation.w = 1.0;
74 m.frame_locked =
false;
76 m.points.reserve(speeds.speeds.size()*2);
78 for (
auto const &speed : speeds.speeds) {
79 mnm::RoutePosition position;
80 position.id = speed.id;
81 position.distance = speed.distance;
static geometry_msgs::Point makePoint(const double x, const double y)
void markerForRouteSpeeds(visualization_msgs::Marker &marker, const Route &route, const marti_nav_msgs::RouteSpeedArray &speeds, double scale)
bool interpolateRoutePosition(RoutePoint &point, const Route &route, const marti_nav_msgs::RoutePosition &position, bool allow_extrapolation)
TFSIMD_FORCE_INLINE const tfScalar & x() const
TFSIMD_FORCE_INLINE const tfScalar & y() const
const tf::Vector3 & position() const
const tf::Quaternion & orientation() const