Ask Your Question
0

moveit_tutorial build failing

asked 2019-09-14 01:45:46 -0500

pyropotato gravatar image

updated 2019-09-14 18:56:50 -0500

jayess gravatar image

I am following the step here: https://ros-planning.github.io/moveit_tutorials/doc/getting_started/getting_started.html#install-moveit

  • ROS Version: Melodic
  • OS: Ubuntu 18

It works till catkin configure. After the catkin build command the panda_moveit_config finished without errors but the moveit_tutorials gives me erros. The build log shows the following

[  5%] Built target robot_model_and_robot_state_tutorial
[ 11%] Built target ros_api_tutorial
[ 17%] Built target planning_scene_ros_api_tutorial
[ 23%] Built target planning_scene_tutorial
[ 29%] Built target motion_planning_api_tutorial
[ 35%] Built target motion_planning_pipeline_tutorial
[ 47%] Built target interactivity_utils
[ 52%] Built target move_group_interface_tutorial
[ 58%] Built target state_display_tutorial
[ 61%] Building CXX object doc/subframes/CMakeFiles/subframes_tutorial.dir/src/subframes_tutorial.cpp.o
[ 67%] Built target pick_place_tutorial
[ 73%] Built target cylinder_segment
[ 79%] Built target bag_publisher_maintain_time
Scanning dependencies of target trajopt_example
Scanning dependencies of target visualizing_collisions_tutorial
[ 85%] Built target controller_manager_example
[ 88%] Building CXX object doc/trajopt_planner/CMakeFiles/trajopt_example.dir/src/trajopt_example.cpp.o
[ 91%] Building CXX object doc/visualizing_collisions/CMakeFiles/visualizing_collisions_tutorial.dir/src/visualizing_collisions_tutorial.cpp.o
/home/pyro/ws_moveit/src/moveit_tutorials/doc/visualizing_collisions/src/visualizing_collisions_tutorial.cpp:47:10: fatal error: moveit/collision_detection_fcl/collision_env_fcl.h: No such file or directory
 #include <moveit/collision_detection_fcl/collision_env_fcl.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
doc/visualizing_collisions/CMakeFiles/visualizing_collisions_tutorial.dir/build.make:62: recipe for target 'doc/visualizing_collisions/CMakeFiles/visualizing_collisions_tutorial.dir/src/visualizing_collisions_tutorial.cpp.o' failed
CMakeFiles/Makefile2:4490: recipe for target 'doc/visualizing_collisions/CMakeFiles/visualizing_collisions_tutorial.dir/all' failed
make[2]: *** [doc/visualizing_collisions/CMakeFiles/visualizing_collisions_tutorial.dir/src/visualizing_collisions_tutorial.cpp.o] Error 1
make[1]: *** [doc/visualizing_collisions/CMakeFiles/visualizing_collisions_tutorial.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/pyro/ws_moveit/src/moveit_tutorials/doc/subframes/src/subframes_tutorial.cpp: In function ‘void spawnCollisionObjects(moveit::planning_interface::PlanningSceneInterface&)’:
/home/pyro/ws_moveit/src/moveit_tutorials/doc/subframes/src/subframes_tutorial.cpp:114:7: error: ‘moveit_msgs::CollisionObject {aka struct moveit_msgs::CollisionObject_<std::allocator<void> >}’ has no member named ‘subframe_names’
   box.subframe_names.resize(5);
       ^~~~~~~~~~~~~~
/home/pyro/ws_moveit/src/moveit_tutorials/doc/subframes/src/subframes_tutorial.cpp:115:7: error: ‘moveit_msgs::CollisionObject {aka struct moveit_msgs::CollisionObject_<std::allocator<void> >}’ has no member named ‘subframe_poses’; did you mean ‘plane_poses’?
   box.subframe_poses.resize(5);
       ^~~~~~~~~~~~~~
       plane_poses
/home/pyro/ws_moveit/src/moveit_tutorials/doc/subframes/src/subframes_tutorial.cpp:117:7: error: ‘moveit_msgs::CollisionObject {aka struct moveit_msgs::CollisionObject_<std::allocator<void> >}’ has no member named ‘subframe_names’
   box.subframe_names[0] = "bottom";
       ^~~~~~~~~~~~~~
/home/pyro/ws_moveit/src/moveit_tutorials/doc/subframes/src/subframes_tutorial.cpp:118:7: error: ‘moveit_msgs::CollisionObject {aka struct moveit_msgs::CollisionObject_<std::allocator<void> >}’ has no member named ‘subframe_poses’; did you mean ‘plane_poses’?
   box.subframe_poses[0].position.y = -.05;
       ^~~~~~~~~~~~~~
       plane_poses
/home/pyro/ws_moveit/src/moveit_tutorials/doc/subframes/src/subframes_tutorial.cpp:119:7: error: ‘moveit_msgs::CollisionObject {aka struct moveit_msgs::CollisionObject_<std::allocator<void> >}’ has no member named ‘subframe_poses’; did you mean ‘plane_poses’?
   box.subframe_poses[0].position.z = 0.0 + z_offset_box;
       ^~~~~~~~~~~~~~
       plane_poses
/home/pyro/ws_moveit/src/moveit_tutorials/doc/subframes/src/subframes_tutorial.cpp:123:7: error: ‘moveit_msgs::CollisionObject {aka struct moveit_msgs::CollisionObject_<std::allocator<void> >}’ has no member named ‘subframe_poses’; did you mean ‘plane_poses’?
   box.subframe_poses[0].orientation = tf2::toMsg(orientation);
       ^~~~~~~~~~~~~~
       plane_poses
/home/pyro/ws_moveit/src/moveit_tutorials/doc/subframes/src/subframes_tutorial.cpp:126:7: error: ‘moveit_msgs::CollisionObject {aka struct moveit_msgs::CollisionObject_<std::allocator<void> >}’ has no member named ‘subframe_names’
   box.subframe_names[1] = "top";
       ^~~~~~~~~~~~~~
/home ...
(more)
edit retag flag offensive close merge delete

Comments

Seems like the same as this issue.

aPonza gravatar imageaPonza ( 2019-09-23 08:58:43 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-09-23 07:10:04 -0500

Did you build moveit from source beforehand?

https://ros-planning.github.io/moveit... was updated just two days after your question...

edit flag offensive delete link more

Comments

tried again(link text) but gives other errors.

I was however able to install it by following these instructions: [https://moveit.ros.org/install/source/]

pyropotato gravatar imagepyropotato ( 2019-09-29 02:19:12 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-09-14 01:44:47 -0500

Seen: 50 times

Last updated: Sep 23