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
change parameter tag from holonomic to steering #46
Conversation
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
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.
The changes here are okay with me. We can merge after @luca-della-vedova takes a look.
// steering type constants | ||
static const std::string DIFF_DRIVE; | ||
static const std::string ACKERMANN; |
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.
I think we can use a hash map that maps a string to an enum
(maybe called VehicleDriveType or something along those lines), so it would be a bit clearer, i.e. go from SlotcarCommon::DIFF_DRIVE
to VehicleDriveType::DIFF_DRIVE
.
Something similar to what we do for checking the physics engine plugin here
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.
switch to enum 2e157ce, no need for the unordered map atm since it's only used in a single area
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.
I did a quick grep in the rmf codebase and noticed that we don't do uppercase enum class
, the convention seems to be on UpperCamelCase
, also having to write SlotcarCommon::STEERING_TYPE::ACKERMANN
is quite verbose, you can bring the definition of the enum class outside of the SlotcarCommon
class to get rid of the first scope. Since it would be in the rmf_robot_sim_common
namespace there is no risk of polluting other namespaces.
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.
fixed 9e0001d
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
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.
Thanks for the fixes!
* change holonomic to steering_type Signed-off-by: ddengster <ed.fan@osrfoundation.org> * uncrustify Signed-off-by: ddengster <ed.fan@osrfoundation.org> * update changelogs Signed-off-by: ddengster <ed.fan@osrfoundation.org> * switch to enum Signed-off-by: ddengster <ed.fan@osrfoundation.org> * enum changes Signed-off-by: ddengster <ed.fan@osrfoundation.org> Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
Signed-off-by: ddengster ed.fan@osrfoundation.org
Bug fix
Fixed bug
changed
<holonomic>
tags to<steering>
tag for greater clarity. Likewise for code references.