Using rviz_visual_tools no matching function

asked 2016-11-24 05:09:40 -0500

mutu gravatar image

updated 2016-11-24 05:10:05 -0500

Hello All!

Currently i try to implement the rviz_visual_tools in my youbot simulation model. I tried to use the computecartesianpath()-function in MoveIt! and wanted to use the publishpath-function of rviz_visual_tool 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 "rviz_visual_tools::RvizVisualTools::publishPath(....)

Can u help me to find a solution, please?

edit retag flag offensive close merge delete

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.

Dave Coleman gravatar imageDave Coleman ( 2016-11-24 12:34:44 -0500 )edit

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?

mutu gravatar imagemutu ( 2016-11-28 03:55:40 -0500 )edit

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

kolya_rage gravatar imagekolya_rage ( 2019-02-12 16:01:18 -0500 )edit

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

kolya_rage gravatar imagekolya_rage ( 2019-02-12 16:03:18 -0500 )edit