-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support nonholonomic movement for slotcar #33
Conversation
fdb7dbb
to
203e6ab
Compare
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
…cleanup Signed-off-by: ddengster <ed.fan@osrfoundation.org>
attempted fix on turning for straight line ackmann paths more cleanup Signed-off-by: ddengster <ed.fan@osrfoundation.org>
203e6ab
to
aae8f05
Compare
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
6170493
to
49cb6d3
Compare
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
remove snap_world_pose code Signed-off-by: ddengster <ed.fan@osrfoundation.org>
Before I look too much into the code I can see from a quick glance that mostly new functions are used (i.e. the ackermann topic callback, an update specifically for non holonomic vehicles), and not too much of the slotcar pre-existing code. |
There were some code like movement, battery usage, etc and I thought the potential of reusing them would be a good thing, however the movement code didn't turn out to be that suited. Still I think it can work out correctly once we've solved the bugs. The battery code is another part that would be useful to have in the future. Still I think we can stick to this arrangement - I don't feel a new movement and path construction function warrants a new plugin. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finished a first quick round of review, I think there is a bit of cleanup (there is quite a bit of commented code / unused variables scattered around), as well as documentation to help follow the logic better that can be done.
Eigen::Vector2d tangent0 = wp[1] + tangent_length * wp1_to_wp0_norm; | ||
Eigen::Vector2d tangent1 = wp[1] + tangent_length * wp1_to_wp2_norm; | ||
|
||
// shorten the last trajectory and set it's heading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the typo? last
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's -> its
account for robot names in ackmann_path_request remove unneeded world pose condition Signed-off-by: ddengster <ed.fan@osrfoundation.org>
734d864
to
20a8e48
Compare
add condition for ackmann_path_request subscription Signed-off-by: ddengster <ed.fan@osrfoundation.org>
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
New feature implementation
Implemented feature
Support nonholonomic movement for slotcar
Implementation description
Robots using the slotcar plugin can now attempt to follow a path made by nonholonomic robots via publishing to
/ackmann_path_requests
and adding the tag<holonomic>0</holonomic>
to their sdf model files. An example script and level can be used to test in this PR open-rmf/rmf_demos#70.Currently the nonholonomic movement update code does not consider