osrf / vrx

Virtual RobotX (VRX) resources.
Apache License 2.0
420 stars 189 forks source link

RoboBoat01 reference model #758

Closed caguero closed 9 months ago

caguero commented 9 months ago

This pull request adds 1 of 2 of the RoboBoat reference models. I decided to add it to this repository to make it easier to modify by RoboBoat users, as opposed to upstreaming it to Fuel.

Screenshot from 2023-12-17 09-54-38

Screenshot from 2023-12-17 09-55-05

Screenshot from 2023-12-17 09-55-28

How to test it?

Add the following block to worlds/sydney_regatta.sdf.

<!-- RoboBoat 01 -->
<include>
  <name>roboboat01</name>
  <pose>-528 184 0 0 0 0</pose>
  <uri>roboboat01</uri>
</include>

Recompile VRX and launch it:

GZ_VERSION=garden colcon build --merge-install
ros2 launch vrx_gz competition.launch.py world:=sydney_regatta

Spin the thrusters:

gz topic -t /model/roboboat01/joint/right_engine_propeller_joint/cmd_thrust -m gz.msgs.Double -p 'data: 1'