38 void addPointMarker(
double x,
double y,
bool colliding, visualization_msgs::MarkerArray* msg)
46 if (msg->markers.empty())
49 msg->markers.resize(1);
50 msg->markers[0].type = msg->markers[0].POINTS;
51 msg->markers[0].header.frame_id =
"odom";
53 msg->markers[0].pose.orientation.w = 1.0;
54 msg->markers[0].scale.x = 0.02;
55 msg->markers[0].scale.y = 0.02;
56 msg->markers[0].scale.z = 0.02;
59 geometry_msgs::Point point;
63 msg->markers[0].points.push_back(point);
65 std_msgs::ColorRGBA color;
82 msg->markers[0].colors.push_back(color);