ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I think you are abit confused about how you would want to write your test. There are 2 ways to write test in your case:
MoveBaseAction
object, you can just you can access all the class attributes and functions (after add the FRIEND_TEST to header file, of course). So you dont have to use waitForServer
, sendGoal
, etc. Instead, you can just create a MoveBaseGoal
object and call the execute
function directly. After that, you can just compare the outcome of result_
object.