Repository navigation
fixed moveit_joy test - #170
Conversation
also gracefully handles an invalid robot model in python interface instead of segfaulting (this was actually the reason for the joy test to fail)
| { | ||
| robot_model_ = planning_interface::getSharedRobotModel(robot_description); | ||
| if (!robot_model_) | ||
| throw std::runtime_error("RobotInterfacePython: invalid robot model"); |
There was a problem hiding this comment.
For some reason I can't find the definition of planning_interface::getSharedRobotModel, but does it not return more meaningful info when the model file is "invalid"? I'm afraid how useful for the developers to debug to be told that the model is invalid. If it only returns null obj when robot model is invalid, then this error handling message is perfectly fine (and we probably want to improve getSharedRobotModel to throw exception with more info).
There was a problem hiding this comment.
getSharedRobotModel only returns a pointer to a cached robot model.
There is another PR (#46) pending to avoid invalid models in first place. Indeed, we might want to add some error message there.
|
Could somebody please consider this for merging in order to fix Travis and build farm tests? |
|
+1 This also addresses #47 by throwing an exception instead of the segfault. |
also gracefully handles an invalid robot model in python interface instead of segfaulting (this was actually the reason for the joy test to fail)
also gracefully handles an invalid robot model in python interface instead of segfaulting (this was actually the reason for the joy test to fail)
|
picked to i/j |
Follow up for #149. Again, ROS buildfarm failed on the joystick test...
This (hopefully) fixes the issue finally.
Actually there seems to be a bug in rostest as well: Because our python bindings segfaulted due to an empty robot model (https://github.com/ros-planning/moveit_commander/issues/32), rostest didn't finish correctly, but reported the test as
SUCCEEDED, while the unittest log file was empty. This made only ROS buildfarm to fail, which do some extra analysis of the log files...