ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

So the main issue here is that at one point, MoveGroupInterface::plan() returned a bool: true if successful, and false otherwise. However, MoveGroupInterface::plan() now returns a MoveItErrorCode (see here), which is much more detailed and can say why a plan failed. However, code written to expect a bool won't compile anymore with this change, as the MoveItErrorCode type is not implicitly convertible to a bool.

As mentioned in the Migration document of MoveIt, this can be fixed by changing the code that compiles with MoveIt to use static_cast<bool>(move_group.plan()), instead of the old move_group.plan(). Since you are trying to compile with the Kinova Robot project, you would have to go to the lines shown in the above compile error, say motion.plan.cpp:76, and replace

bool success = group.plan(my_plan);

with

bool success = static_cast<bool>(group.plan(my_plan);

Changing all of those errors should allow the Kinova project to compile.