Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks guys I solved my problem as @gvdhoorn suggested I looked in qbotics/mastering_ros/issues...they had updated the code which was with some issues....the file is provided here in:

https://github.com/qboticslabs/mastering_ros/blob/master/chapter_10_codes/moveit_simple_grasps_1.zip

However the code also were not working well... the following error RAMAINED:

"/home/marcus/catkin_ws/src/moveit_simple_grasps/include/moveit_simple_grasps/custom_environment2.h:78:78: error: no matching function for call to ‘mo tools_->publishCollisionWall(-0.55, 0, 0, 2.2, WALL1_NAME); // back"

Well this error I corrected...giving a double argument in tha matrix position 5 (WALL_NAME)...in this place the source code in "user/opt/ros/kinetic/inculde/moveitvisualtools/moveitvisualtools.h" it is asked to enter with 7 arguments the first 5 arguments are double (pose and dimensions of the object = collisiowalll) and the last 2 are the name (wall1_name or other) and the color of the object in RVIZ (GREEN for example).... so I added a float argument in the cell it was named with a char....like this: publishCollisionWall (-0.55,0,0,2.2,1.5,WALL1_NAME, rvt::GREEN) and it worked!

Where rvt is ...

namespace rvt = rviz_visual_tools

I would like to close this question.

Thanks