Skip to content
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

Add more features to Thruster Plugin #477

Open
4 tasks
acxz opened this issue Jul 18, 2022 · 0 comments
Open
4 tasks

Add more features to Thruster Plugin #477

acxz opened this issue Jul 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@acxz
Copy link

acxz commented Jul 18, 2022

This issue is a feature request to add specific features to our thruster plugin: https://github.com/osrf/vrx/blob/master/usv_gazebo_plugins/src/usv_gazebo_thrust_plugin.cc

These features are inspired by UUV's thruster plugin: https://github.com/uuvsimulator/uuv_simulator/blob/bfb40cb153684a0703173117b6bbf4258e8e71c5/uuv_gazebo_plugins/uuv_gazebo_plugins/src/ThrusterPlugin.cc

  • mappingType of 2, LinearInterp. This allows users to input values from a datasheet and the thrust plugin will linearly interpret b/t them. Example user interface:
<mappingType>2</mappingType>
<inputValues>-1.0 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1.0</inputValues>
<outputValues>-19.88 -16.52 -12.6 -5.6 -1.4 0.0 2.24 9.52 21.28 28.0 33.6</outputValues>

Example logic:

cmd = 0.9;
(33.6 - 28.0)/(1.0 - 0.8) * (0.9 - 0.8) + 28
  • thruster dynamics, first order model
    Example user interface:
<dynamics>
  <type>FirstOrder</type>
  <timeConstant>0.5</timeConstant>
</dynamics>
  • minCmd and maxCmd clamping, while maxCmd is already implemented, it is not necessarily being used to clamp the input value.

  • maxForceFwd and maxForceRev clamping

Edit: there are more features available in the uuv thruster plugin, such as thruster/prop efficienty and other types of mappings. However, I have only listed the ones that are needed for my specific project. Perhaps another issue such as "UUV Thruster Plugin Feature Parity" may be desired based on community request.

@M1chaelM M1chaelM added the enhancement New feature or request label Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants