Skip to content
Snippets Groups Projects
Commit f3dca666 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Add quaternion to marker to avoid rviz warning

parent 30417f1d
No related branches found
No related tags found
2 merge requests!11new release,!10new release
......@@ -93,7 +93,6 @@ class PublisherGraph: public Publisher
// auxiliar variables
unsigned int landmark_max_hits_;
double viz_period_;
ros::Time last_markers_publish_;
std::set<std::string> factors_drawn_;
......
......@@ -589,6 +589,12 @@ void PublisherGraph::fillFactorMarker(FactorBaseConstPtr fac,
fac_marker.points.push_back(point1);
fac_marker.points.push_back(point2);
// initialize quaternion to avoid RVIZ warning
fac_marker.pose.orientation.w = 1.0;
fac_marker.pose.orientation.x = 0.0;
fac_marker.pose.orientation.y = 0.0;
fac_marker.pose.orientation.z = 0.0;
// colors ------------------------------------------------------
auto color = factor_abs_color_;
if (fac->getTopology() == TOP_ABS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment