Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin_make failed #1

Open
borninfreedom opened this issue Oct 14, 2019 · 7 comments
Open

catkin_make failed #1

borninfreedom opened this issue Oct 14, 2019 · 7 comments

Comments

@borninfreedom
Copy link

/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
Copy link

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

@Datasharing-wow
Copy link

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
Copy link

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
Copy link

saitejaallam commented Sep 6, 2020

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’
visual_tools_->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
Copy link

lilly18 commented Apr 17, 2021

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
Copy link

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
Copy link

lilly18 commented Apr 25, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants