-
Notifications
You must be signed in to change notification settings - Fork 281
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
Update documentation in the linear battery plugin example. #1500
Update documentation in the linear battery plugin example. #1500
Conversation
Signed-off-by: Aditya <[email protected]>
@@ -28,7 +28,7 @@ | |||
Stop recharging the battery using a topic (optional if <recharge_by_topic> is true): | |||
ign topic -t /model/vehicle_blue/battery/linear_battery/recharge/stop -m ignition.msgs.Boolean -p 'data:true' | |||
|
|||
The blue vehicle should stop when it runs out of battery. | |||
After the battery runs out, no force is applied to the joints in the blue vehicle. It would keep on moving as there is no friction to stop it. |
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.
Alternatively, we can joint friction to the vehicles which would bring them to a stop. I still think what you added here is helpful. We can say:
After the battery runs out, no force is applied to the joints in the blue vehicle. It eventually comes to a stop due to friction in its joints. Had there been no joint friction, the vehicle would have kept on moving as Gazebo currently does not support rolling friction.
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.
Added here : cce79a3
Signed-off-by: Aditya <[email protected]>
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.
LGTM!
Codecov Report
@@ Coverage Diff @@
## main #1500 +/- ##
=======================================
Coverage ? 35.01%
=======================================
Files ? 44
Lines ? 2356
Branches ? 0
=======================================
Hits ? 825
Misses ? 1531
Partials ? 0 Continue to review full report at Codecov.
|
The errors in CI are unrelated to this PR :
Windows errors are |
🦟 Bug fix
Fixes #1494
Summary
The blue vehicle does not stop moving when the battery runs out, its just that the forces applied at the joints become zero. The line "vehicle stops moving" in the sdf file is a bit misleading. The update explains the reason for the behavior.
Detailed discussion here : #1494
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸