Skip to content

Commit

Permalink
Update documentation in the linear battery plugin example. (#1500)
Browse files Browse the repository at this point in the history
* Added joint friction to linear battery example and updated the comment

Signed-off-by: Aditya <aditya050995@gmail.com>
  • Loading branch information
adityapande-1995 authored May 26, 2022
1 parent 90a87fd commit aad2019
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/worlds/linear_battery_demo.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
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 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.
The green vehicle will not stop with recharge function.
-->
Expand Down Expand Up @@ -434,6 +436,9 @@
<child>left_wheel_blue</child>
<axis>
<xyz>0 0 1</xyz>
<dynamics>
<friction>0.2</friction>
</dynamics>
<limit>
<lower>-1.79769e+308</lower>
<upper>1.79769e+308</upper>
Expand All @@ -446,6 +451,9 @@
<child>right_wheel_blue</child>
<axis>
<xyz>0 0 1</xyz>
<dynamics>
<friction>0.2</friction>
</dynamics>
<limit>
<lower>-1.79769e+308</lower>
<upper>1.79769e+308</upper>
Expand Down

0 comments on commit aad2019

Please sign in to comment.