Skip to content

Update documentation in the linear battery plugin example. #1500

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

Merged
merged 3 commits into from
May 26, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/worlds/linear_battery_demo.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added here : cce79a3

The green vehicle will not stop with recharge function.

-->
Expand Down