0
$\begingroup$

Rosanswers logo

I'm following the MoveIt Tutorials.
I'm try to catkin_make, but have a issue with package "moveit_tutorials" .

    /home/bkmen/catkin_ws/src/moveit_tutorials/doc/pick_place/src/pick_place_tutorial.cpp: In function ‘void pick(moveit::planning_interface::MoveGroupInterface&)’:
/home/bkmen/catkin_ws/src/moveit_tutorials/doc/pick_place/src/pick_place_tutorial.cpp:94:43:             error: ‘tf’ has not been declared
   grasps[0].grasp_pose.pose.orientation = tf::createQuaternionMsgFromRollPitchYaw(-M_PI / 2, -M_PI / 4, -M_PI / 2);
                                           ^~
/home/bkmen/catkin_ws/src/moveit_tutorials/doc/pick_place/src/pick_place_tutorial.cpp: In function ‘void place(moveit::planning_interface::MoveGroupInterface&)’:
/home/bkmen/catkin_ws/src/moveit_tutorials/doc/pick_place/src/pick_place_tutorial.cpp:149:51:             error: ‘tf’ has not been declared
   place_location[0].place_pose.pose.orientation = tf::createQuaternionMsgFromRollPitchYaw(0, 0, M_PI / 2);
                                                   ^~
moveit_tutorials/doc/pick_place/CMakeFiles/pick_place_tutorial.dir/build.make:62: recipe for target 'moveit_tutorials/doc/pick_place/CMakeFiles/pick_place_tutorial.dir/src/pick_place_tutorial.cpp.o' failed
make[2]: *** [moveit_tutorials/doc/pick_place/CMakeFiles/pick_place_tutorial.dir/src/pick_place_tutorial.cpp.o] Error 1
CMakeFiles/Makefile2:29312: recipe for target 'moveit_tutorials/doc/pick_place/CMakeFiles/pick_place_tutorial.dir/all' failed
make[1]: *** [moveit_tutorials/doc/pick_place/CMakeFiles/pick_place_tutorial.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

Originally posted by bkmen97 on ROS Answers with karma: 38 on 2018-08-22

Post score: 0


Original comments

Comment by Geoff on 2018-08-22:
Please post your source code as well. It's likely that you've forgotten to include the necessary headers for tf.

Comment by jayess on 2018-08-22:
Also, can you please update your question with a link to the tutorial that you're referring to

Comment by mlautman on 2018-08-29:
Is there a reason you are using catkin_make instead of catkin build? The tutorials specifically tell you to use catkin build

Comment by gvdhoorn on 2018-08-30:
@mlautman: your reply was not an answer, so I've converted it to a comment.

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Yes, i'm include <tf/transform_broadcaster.h> into pick_place_tutorial.cpp and the issue has solved. Thanks.


Originally posted by bkmen97 with karma: 38 on 2018-08-22

This answer was ACCEPTED on the original site

Post score: 2


Original comments

Comment by pranav1 on 2019-11-07:
its the same error come while running the rrt algorithm and this solve the issue by adding this to the error generating file. Thanks for the answer.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.