Giter VIP home page Giter VIP logo

Comments (7)

Sowjanya06 avatar Sowjanya06 commented on June 22, 2024

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

from pick-place-robot.

Datasharing-wow avatar Datasharing-wow commented on June 22, 2024

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

from pick-place-robot.

MengsiCode avatar MengsiCode commented on June 22, 2024

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

from pick-place-robot.

saitejaallam avatar saitejaallam commented on June 22, 2024

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

from pick-place-robot.

lilly18 avatar lilly18 commented on June 22, 2024

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();

from pick-place-robot.

RoidZhou avatar RoidZhou commented on June 22, 2024

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!

from pick-place-robot.

lilly18 avatar lilly18 commented on June 22, 2024

from pick-place-robot.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.