Salman-H / pick-place-robot

Object picking and stowing with a 6-DOF KUKA Robot using ROS
Other
239 stars 78 forks source link

catkin_make failed #1

Open borninfreedom opened 4 years ago

borninfreedom commented 4 years ago

/home/eric/catkin_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp: In constructor ‘TrajectorySampler::TrajectorySampler(ros::NodeHandle)’: /home/eric/catkin_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp:180:43: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in initialization bool success = move_group.plan(my_plan); ^

Sowjanya06 commented 4 years ago

I had the same issue and I replaced 'bool success' with
"‘moveit::planning_interface::MoveItErrorCode success " everywhere possible

Datasharing-wow commented 4 years ago

I had the same issue but even I replaced 'bool success' with "‘moveit::planning_interface::MoveItErrorCode success " everywhere possible, still got the same error

MengsiCode commented 3 years ago

Just change the line with errors with bool success = move_group->move() == moveit::planning_interface::MoveItErrorCode::SUCCESS; You can also use static cast if you are into that

saitejaallam commented 3 years ago

I had the same issue while building the package and here is the errors on the terminal. Please someone guide me to solve this issue and build the module.

Thank you

/home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp: In constructor ‘TrajectorySampler::TrajectorySampler(ros::NodeHandle)’: /home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp:180:43: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in initialization bool success = move_group.plan(my_plan); ^ /home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp:224:15: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in assignment success = move_group.execute(my_plan); ^ /home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp:291:39: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in initialization bool worked = move_group.move(); ^ /home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp:313:13: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in assignment success = move_group.move(); ^ /home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp:340:13: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in assignment success = move_group.move(); ^ /home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp:352:13: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in assignment success = move_group.plan(my_plan); ^ /home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp:376:15: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in assignment success = move_group.execute(my_plan); ^ /home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp:453:39: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in initialization bool worked = move_group.move(); ^ /home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp:498:13: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in assignment success = move_group.move(); ^ /home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp: In member function ‘bool TrajectorySampler::OperateGripper(const bool&)’: /home/nallam/armlab_ws/src/pick-place-robot/kuka_arm/src/trajectory_sampler.cpp:544:33: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in initialization bool success = eef_group.move(); ^ /home/nallam/armlab_ws/src/moveit_simple_grasps/src/grasp_filter_test.cpp: In constructor ‘moveit_simple_grasps::GraspGeneratorTest::GraspGeneratorTest(int)’: /home/nallam/armlab_ws/src/moveit_simple_grasps/src/grasp_filter_test.cpp:138:20: error: ‘class moveit_visual_tools::MoveItVisualTools’ has no member named ‘setFloorToBaseHeight’ visualtools->setFloorToBaseHeight(-0.9); ^ pick-place-robot/kuka_arm/CMakeFiles/trajectory_sampler.dir/build.make:62: recipe for target 'pick-place-robot/kuka_arm/CMakeFiles/trajectory_sampler.dir/src/trajectory_sampler.cpp.o' failed make[2]: [pick-place-robot/kuka_arm/CMakeFiles/trajectory_sampler.dir/src/trajectory_sampler.cpp.o] Error 1 CMakeFiles/Makefile2:20029: recipe for target 'pick-place-robot/kuka_arm/CMakeFiles/trajectory_sampler.dir/all' failed make[1]: [pick-place-robot/kuka_arm/CMakeFiles/trajectory_sampler.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... moveit_simple_grasps/CMakeFiles/moveit_simple_grasps_filter_test.dir/build.make:62: recipe for target 'moveit_simple_grasps/CMakeFiles/moveit_simple_grasps_filter_test.dir/src/grasp_filter_test.cpp.o' failed make[2]: [moveit_simple_grasps/CMakeFiles/moveit_simple_grasps_filter_test.dir/src/grasp_filter_test.cpp.o] Error 1 CMakeFiles/Makefile2:20150: recipe for target 'moveit_simple_grasps/CMakeFiles/moveit_simple_grasps_filter_test.dir/all' failed make[1]: [moveit_simple_grasps/CMakeFiles/moveit_simple_grasps_filter_test.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: [all] Error 2 Invoking "make -j8 -l8" failed

lilly18 commented 3 years ago

i m having the same issue tried to use things mentioned but not solved...can anyone help pls? error on this line if implement above.. bool success = eef_group.move();

RoidZhou commented 3 years ago

I have succeed!

example: replace

success = move_group.move(); success = move_group.execute(my_plan);

to

success = static_cast(move_group.move()); success = static_cast(move_group.execute(my_plan));

you should replace all error!

lilly18 commented 3 years ago

thanks so much it works now 🙂

On Sun, Apr 25, 2021, 10:25 AM Zhou-y-b @.***> wrote:

I have succeed!

example: replace

success = move_group.move(); success = move_group.execute(my_plan);

to

success = static_cast(move_group.move()); success = static_cast(move_group.execute(my_plan));

you should replace all error!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Salman-H/pick-place-robot/issues/1#issuecomment-826259495, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSIDWIBXH3RAS6CTLJKMFTTKORUDANCNFSM4JALKFPA .