Repository to simulate the Aquanaute boat in maritime conditions such as wind and waves with the plugins created for the VRX and VRX-Challenge in Gazebo and ROS.
Repository to simulate the Aquanaute boat in maritime conditions such as wind and waves and with autopilot provided by ardupilot, using the plugins created for the VRX and VRX-Challenge in Gazebo and ROS and the plugin ardupilot-gazebo.
---
## Installation
## Installation
* Clone this repo to a Catkin Workspace
* Clone this repo to a Catkin Workspace
* Clone the VRX repo (hosted at ensta) to the same Workspace (http://git-u2is.ensta.fr/ssh/vrx) and checkout to the branch "aquanaute"
* Clone the VRX repo (hosted at ensta) to the same Workspace (<http://git-u2is.ensta.fr/ssh/vrx>) and change to the branch "aquanaute"
### ardupilot parameters
in the file "vehiculeinfo.py" (/ardupilot/Tools/autotest/pysim) you need to change the default parameters file for the "gazebo-rover" in line 280 to the aquanaute.parm file provided in /aquanaute/aquanaute_description/ardu_params you can copy and paste the file in the default_params folder located inside (/ardupilot/Tools/autotest).
*There is an error when you launch ardupilot, the motors in the gazebo simulation will start to turn in a fixed direction and wont respond to commands, this issue has not yet been fixed and it's root cause it's not yet defined, it may be the ardupilot_gazebo plugin or the ardupilot frame*
---
## Usage
## Usage
### modify wind and waves
### modify wind and waves
in the ocean.world.xacro (/vrx_gazebo/worlds) you have
in the ocean.world.xacro (/vrx_gazebo/worlds) you have
@@ -27,31 +38,36 @@ Repository to simulate the Aquanaute boat in maritime conditions such as wind an
</wind_obj>
</wind_obj>
</wind_objs>
</wind_objs>
</xacro:usv_wind_gazebo>
</xacro:usv_wind_gazebo>
```
it is configured to have no waves and no wind, also the wind and the waves move in the same direction, to activate wind and waves change the "mean_vel" and "gain" parameters respectively (recomended values are smaller than 1.0).
It is configured to have no waves and no wind, also the wind and the waves move in the same direction, to activate wind and waves change the "mean_vel" and "gain" parameters respectively (recomended values are smaller than 1.0).
Even when these values are set to 0, the boat will move from right to left.
---
### run
### run
in the workspace run the command at the beginning (and every time you change a parameter)
```bash
#### compilation
in the workspace run the command at the beginning (and every time you change a parameter in the vrx xacros)