add gazebo movement test#409
Conversation
kev-the-dev
left a comment
There was a problem hiding this comment.
Nice progress on this. Not sure if @RustyBamboo had other plans for this test than I originally envisioned, but I have some feedback for the design.
Basically, does this do anything that submove f <x> right <y> doesn't? It seems to just send a move and see if the motion planner thinks it got there, which is what submove does
I'd suggest a few things:
- Verify with
/odomif it actually got there (don't trust the motion planner, as this is the thing you are testing) - Turn this into a rostest so it could be run as part of the ci process, which would be super useful!
- Hard code some common moves if user doesn't specify them
| } | ||
| } | ||
| else { | ||
| cout << "The sub failed to move forward " + x + " meter(s)" << endl; |
There was a problem hiding this comment.
Indention is all over here. Try clan-format -i <file> to autoformat your code to our standards.
| std_msgs | ||
| actionlib_msgs | ||
| mil_tools | ||
| ) |
There was a problem hiding this comment.
Only some of these dependencies are actually needed (check the includes in your code). While adding more doesn't change program behavior, it does complicate the build process and make it more confusing to read
|
|
||
| // sets goal to x meter forward | ||
| goal.posetwist.pose.position.x = atoi(argv[1]); | ||
| goal.posetwist.pose.orientation.w = atoi(argv[1]); |
There was a problem hiding this comment.
Why is orientation.w being set to the same as position.x? I'm having trouble seeing the usecase for that
No description provided.