From 383a68e6517c4e6049e2b9bbaf249d13c4e72aa4 Mon Sep 17 00:00:00 2001 From: Matteo Del Seppia <71389092+matteodelseppia@users.noreply.github.com> Date: Tue, 4 Jun 2024 19:08:54 +0200 Subject: [PATCH] Fixed uuv_bluerov2_heavy SDF model, adding jinja for multi vehicle simulations (#1042) * Adding IMU link and joint to uuv_bluerov2_heavy Adding the iMU link and joint the uuv_bluerov2_heavy model, since it is currently unusable. * Adding uuv_bluerov2_heavy.sdf.jinja for multi vehicle UUV simulations * Delete models/uuv_bluerov2_heavy/uuv_bluerov2_heavy.sdf Deleting the SDF model in favor of the jinja template --- ...heavy.sdf => uuv_bluerov2_heavy.sdf.jinja} | 99 +++++++++++++------ 1 file changed, 70 insertions(+), 29 deletions(-) rename models/uuv_bluerov2_heavy/{uuv_bluerov2_heavy.sdf => uuv_bluerov2_heavy.sdf.jinja} (90%) diff --git a/models/uuv_bluerov2_heavy/uuv_bluerov2_heavy.sdf b/models/uuv_bluerov2_heavy/uuv_bluerov2_heavy.sdf.jinja similarity index 90% rename from models/uuv_bluerov2_heavy/uuv_bluerov2_heavy.sdf rename to models/uuv_bluerov2_heavy/uuv_bluerov2_heavy.sdf.jinja index e99e8199a1..794320870c 100644 --- a/models/uuv_bluerov2_heavy/uuv_bluerov2_heavy.sdf +++ b/models/uuv_bluerov2_heavy/uuv_bluerov2_heavy.sdf.jinja @@ -1,6 +1,6 @@ - + 0 0 0 0 0 0 @@ -30,22 +30,59 @@ + + + + 0 0 0 0 0 0 + + 0 0 0 0 0 0 + 0.015 + + 1e-05 + 0 + 0 + 1e-05 + 0 + 1e-05 + + + - - - model://gps - 0 0 0 0 0 0 - gps - - - base_link - gps::link - + + uuv_bluerov2_heavy/imu_link + base_link + + 1 0 0 + + 0 + 0 + 0 + 0 + + + 0 + 0 + + 1 + + + + + + + model://gps + 0 0 0 0 0 0 + gps + + + base_link + gps::link + - + 0.14 -0.10 0 0 1.570796 0.78539815 @@ -526,18 +563,22 @@ /motor_speed/7 0.025 - - - + + + 100 0.0004 6.4e-06 600 /mag - - - + + + + + + + 50 /baro @@ -564,20 +605,20 @@ /mag /baro INADDR_ANY - 14560 - 4560 - 0 - /dev/ttyACM0 - 921600 + {{ mavlink_udp_port }} + {{ mavlink_tcp_port }} + {{ serial_enabled }} + {{ serial_device }} + {{ serial_baudrate }} INADDR_ANY 14550 INADDR_ANY 14540 - false + {{ hil_mode }} false false 0 - 0 + 1 true true /gazebo/command/motor_speed @@ -658,10 +699,10 @@ - - - - base_link + + + + uuv_bluerov2_heavy/imu_link /imu 0.0003394 3.8785e-05