Robotics StackExchange | Archived questions

Using rviz_visual_tools no matching function

Hello All!

Currently i try to implement the rvizvisualtools in my youbot simulation model. I tried to use the computecartesianpath()-function in MoveIt! and wanted to use the publishpath-function of rvizvisualtool afterwards to generate the path:

namespace rvt = rviz_visual_tools;
rviz_visual_tools::RvizVisualTools visual_tools("odom_combined");
...
...
double fraction = group.computeCartesianPath(waypoints, 0.01, 0.0, trajectory);
...
visual_tools.deleteAllMarkers();
visual_tools.publishPath(waypoints, rvt::LIME_GREEN, rvt::LARGE);
for (std::size_t i=0; i<waypoints.size(); ++i)
{
visual_tools.publishAxisLabeled(waypoints[i], "pt" + std::to_string(i), rvt::SMALL);
}
visual_tools.trigger();
visual_tools.prompt("next step");

When i try to compile this, i get: error: no matching function for call to "rvizvisualtools::RvizVisualTools::publishPath(....)

Can u help me to find a solution, please?

Asked by mutu on 2016-11-24 06:09:40 UTC

Comments

You didn't specify the type of waypoints in your example code - we can't help. Except to suggest you probably have the wrong type.

Asked by Dave Coleman on 2016-11-24 13:34:44 UTC

Hey Dave thank you for your answer. I specified the type of waypoints like below:

std::vector<geometry_msgs::Pose> waypoints;

and used the waypoints.push_back(target_pose3) function to write a pose in my waypoint. The computecartesianpath-function generates a trajectory. What is the issue then?

Asked by mutu on 2016-11-28 04:55:40 UTC

please share the whole compiler output so I can help you out

Asked by kolya_rage on 2019-02-12 17:01:18 UTC

I see, this was long time ago and nobody answered for some reason

Asked by kolya_rage on 2019-02-12 17:03:18 UTC

Answers