You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
robotStateMsgToRobotState returns success when state message is empty #496
The terminal from where the demo.launch file was ran will print the received Start RobotState Message which isn't populated. The issue is that the code gets to that point even though the robotStateMsgToRobotState was called to copy the message into a moveit::core::RobotState.
Actual behaviour
If the robotStateMsgToRobotState function were to work correctly it should return false when it gets and empty RobotState message and the planner code shouldn't be able to reach the point where it prints the message.
Backtrace or Console output
Use gist.github.com to copy-paste the console output or segfault backtrace using gdb.
Maybe planning_scene::PlanningScene::isEmpty(RobotState) instead?
Either way, MultiDOFJointStates should be respected too.
The functions ignore is_diff, which makes the state non-empty when set to true.
I'm not sure where this function is used throughout MoveIt and whether there is some use-case that would break if we add the check, but I'm fine with finding this out through a merged pull-request.
All translation functions in this file should behave the same with respect to empty input messages though.
Activity
davetcoleman commentedon May 1, 2017
Seems it could use something like
if (RobotState.JointState.name.empty()) return false;v4hn commentedon May 8, 2017
Maybe
planning_scene::PlanningScene::isEmpty(RobotState)instead?Either way, MultiDOFJointStates should be respected too.
The functions ignore
is_diff, which makes the state non-empty when set to true.I'm not sure where this function is used throughout MoveIt and whether there is some use-case that would break if we add the check, but I'm fine with finding this out through a merged pull-request.
All translation functions in this file should behave the same with respect to empty input messages though.
davetcoleman commentedon Jun 4, 2017
This can be closed now, correct?
130s commentedon Jun 5, 2017
I think so, addressed by #499.