Skip to content

Commit 85b92ae

Browse files
update robot files, ignore new models for now
1 parent e8906f3 commit 85b92ae

25 files changed

+411
-20
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.vscode/
2+
3+
# TODO: Reduce mesh qualities.
4+
# Useful cmd to know the size of each file.
5+
# git status --porcelain | awk '{print $2}' | xargs ls -hs | sort -h
6+
uv_worlds/models/props/*
7+
uv_worlds/newworlds/*

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@ To install the repo just run `init_workspace.sh`
88

99
```
1010
roslaunch uv_worlds lake_challenges.launch
11-
roslaunch vtec_s3_description upload.launch
12-
roslaunch usv_master usv_master.launch
11+
roslaunch vehicle_descriptions vtec_s3.launch
12+
roslaunch usv_master usv_master.launch
1313
```
1414

1515
### To run the UUV simulator, in a terminal write the following commands:
1616

1717
```
1818
roslaunch uv_worlds lake.launch
19-
roslaunch vtec_u3_description upload.launch
19+
roslaunch vehicle_descriptions vtec_u3.launch
20+
rosrun vehicle_descriptions gazebo_interface
21+
roslaunch vanttec_uuv uuv_simulation.launch
22+
2023
run uuv simulation file from vanttec_uuv package
2124
```
2225

sensors/realsense_gazebo_plugin/launch/realsense_urdf.launch

+11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@
33
name="robot_description"
44
command="$(find xacro)/xacro '$(find realsense_gazebo_plugin)/urdf/rs200_simulation.xacro'"
55
/>
6+
<arg name="gui" default="true"/>
7+
<arg name="paused" default="false"/>
8+
<arg name="set_timeout" default="false"/>
9+
<arg name="timeout" default="0.0"/>
610
<include file="$(find gazebo_ros)/launch/empty_world.launch">
11+
<arg name="world_name" value="$(find uv_worlds)/worlds/testyolact.world"/>
12+
<arg name="paused" value="$(arg paused)"/>
13+
<arg name="use_sim_time" value="true"/>
14+
<arg name="gui" value="$(arg gui)"/>
15+
<arg name="headless" value="false"/>
16+
<arg name="debug" value="false"/>
17+
<arg name="verbose" value="true"/>
718
</include>
819
<node
920
name="spawn_model"

sensors/realsense_gazebo_plugin/urdf/realsense-RS200.macro.xacro

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
iyy="2.51e-06"
3535
iyz="0"
3636
izz="8.931e-05"
37-
/>
37+
/>
3838
</inertial>
3939
</link>
4040

sensors/uuv_sensor_plugins/uuv_sensor_ros_plugins/urdf/dvl_snippets.xacro

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
<plugin filename="libuuv_gazebo_ros_dvl_plugin.so" name="libuuv_gazebo_dvl${suffix}_plugin">
189189
<robot_namespace>${namespace}</robot_namespace> <!-- (string, required): ros namespace in which the messages are published -->
190190
<!-- Changed from dvl_link to base_link to get ENU coordinate frame -->
191-
<link_name>${namespace}/base_link</link_name> <!-- (string, required): name of the body which holds the IMU sensor -->
191+
<link_name>${namespace}_base_link</link_name> <!-- (string, required): name of the body which holds the IMU sensor -->
192192
<sensor_topic>${topic}</sensor_topic> <!-- (string): name of the sensor output topic and prefix of service names -->
193193
<update_rate>${update_rate}</update_rate> <!-- Update period [s] -->
194194
<noise_sigma>${noise_sigma}</noise_sigma> <!-- std dev of position estimates in x, y, z [m/s] -->
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<launch>
2+
3+
<!-- Begin Mapa1 -->
4+
<group ns="Mapa1">
5+
<param name="robot_description"
6+
command="$(find xacro)/xacro --inorder '$(find uv_worlds)/urdf/mapa1.xacro' "/>
7+
<node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen"
8+
args="-urdf -param robot_description -model mapa1"/>
9+
</group>
10+
<!-- Begin Bottle -->
11+
<group ns="Bottle">
12+
<param name="robot_description"
13+
command="$(find xacro)/xacro --inorder '$(find uv_worlds)/urdf/bottle.xacro' "/>
14+
<node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen"
15+
args="-urdf -param robot_description -model bottle"/>
16+
</group>
17+
</launch>

uv_worlds/launch/mapa_2_ch22.launch

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<launch>
2+
<arg name="gui" default="true"/>
3+
<arg name="paused" default="false"/>
4+
<arg name="set_timeout" default="false"/>
5+
<arg name="timeout" default="0.0"/>
6+
<!-- We resume the logic in empty_world.launch, changing only the name of the world to be launched -->
7+
<include file="$(find gazebo_ros)/launch/empty_world.launch">
8+
<arg name="world_name" value="$(find uv_worlds)/newworlds/mapa_2.world"/>
9+
<arg name="paused" value="$(arg paused)"/>
10+
<arg name="use_sim_time" value="true"/>
11+
<arg name="gui" value="$(arg gui)"/>
12+
<arg name="headless" value="false"/>
13+
<arg name="debug" value="false"/>
14+
<arg name="verbose" value="true"/>
15+
</include>
16+
17+
<include file="$(find uv_worlds)/launch/publish_world_ned_frame.launch"/>
18+
19+
<!-- <node name="publish_world_models"
20+
pkg="uv_worlds"
21+
type="publish_world_models.py"
22+
output="screen">
23+
<rosparam subst_value="true">
24+
meshes:
25+
lake:
26+
mesh: package://uv_worlds/models/lake/meshes/LakeBottom.dae
27+
model: lake
28+
</rosparam>
29+
</node> -->
30+
31+
<group if="$(arg set_timeout)">
32+
<include file="$(find uv_worlds)/launch/set_simulation_timer.launch">
33+
<arg name="timeout" value="$(arg timeout)"/>
34+
</include>
35+
</group>
36+
</launch>

uv_worlds/launch/mapa_3_ch22.launch

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<launch>
2+
<arg name="gui" default="true"/>
3+
<arg name="paused" default="false"/>
4+
<arg name="set_timeout" default="false"/>
5+
<arg name="timeout" default="0.0"/>
6+
<!-- We resume the logic in empty_world.launch, changing only the name of the world to be launched -->
7+
<include file="$(find gazebo_ros)/launch/empty_world.launch">
8+
<arg name="world_name" value="$(find uv_worlds)/newworlds/mapa_3.world"/>
9+
<arg name="paused" value="$(arg paused)"/>
10+
<arg name="use_sim_time" value="true"/>
11+
<arg name="gui" value="$(arg gui)"/>
12+
<arg name="headless" value="false"/>
13+
<arg name="debug" value="false"/>
14+
<arg name="verbose" value="true"/>
15+
</include>
16+
17+
<include file="$(find uv_worlds)/launch/publish_world_ned_frame.launch"/>
18+
19+
<!-- <node name="publish_world_models"
20+
pkg="uv_worlds"
21+
type="publish_world_models.py"
22+
output="screen">
23+
<rosparam subst_value="true">
24+
meshes:
25+
lake:
26+
mesh: package://uv_worlds/models/lake/meshes/LakeBottom.dae
27+
model: lake
28+
</rosparam>
29+
</node> -->
30+
31+
<group if="$(arg set_timeout)">
32+
<include file="$(find uv_worlds)/launch/set_simulation_timer.launch">
33+
<arg name="timeout" value="$(arg timeout)"/>
34+
</include>
35+
</group>
36+
</launch>

uv_worlds/launch/task_obstacles.launch

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
args="-urdf -param robot_description -model path_marker3"/>
8686
</group>
8787
<!-- Enable camera gazebo plugin-->
88-
<include file="$(find realsense_gazebo_plugin)/launch/depth_procfront.launch">
89-
</include>
88+
<!-- <include file="$(find realsense_gazebo_plugin)/launch/depth_procfront.launch">
89+
</include>-->
9090

9191
<!-- <include file="$(find realsense_gazebo_plugin)/launch/depth_procdown.launch">-->
9292
<!-- </include>-->

uv_worlds/launch/test_spawn_reda0.launch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<launch>
33
<arg name="robot_name" default="Red_A0buoy" />
4-
<arg name="x" default="0.0" />
5-
<arg name="y" default="0.0" />
4+
<arg name="x" default="2.0" />
5+
<arg name="y" default="2.0" />
66
<arg name="z" default="0.0" />
77
<arg name="roll" default="0" />
88
<arg name="pitch" default="0" />

uv_worlds/models/gate1/gate1.sdf

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0"?>
2+
<sdf version="1.4">
3+
<world name="default">
4+
<include>
5+
<uri>model://ground_plane</uri>
6+
</include>
7+
<include>
8+
<uri>model://sun</uri>
9+
</include>
10+
<model name="my_mesh">
11+
<static>true</static>
12+
<link name="body">
13+
<visual name="visual">
14+
<pose frame=''>0 0 0 0 -0 0</pose>
15+
<geometry>
16+
<mesh><uri>model://props/mygate1.dae</uri></mesh>
17+
</geometry>
18+
</visual>
19+
</link>
20+
</model>
21+
</world>
22+
</sdf>

uv_worlds/models/gate1/model.sdf

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="utf-8"?>
File renamed without changes.

uv_worlds/urdf/bottle.xacro

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0"?>
2+
<robot name="bottle" xmlns:xacro="http://www.ros.org/wiki/xacro">
3+
4+
<!-- Introducir meshes -->
5+
<xacro:property name="visual_mesh_file" value="file://$(find uv_worlds)/models/props/bottle/water_bottle.dae" />
6+
7+
<!-- <origin xyz="0.085 (0 -0.085) 0 0" rpy="0.0 0.0 1.57075"/> -->
8+
9+
<link name="bottle_base">
10+
<visual>
11+
<origin xyz="9.85 27.9 -8.45" rpy="0.0 0.0 0.0"/>
12+
<geometry>
13+
<mesh filename="${visual_mesh_file}" scale="1 1 1" />
14+
</geometry>
15+
</visual>
16+
17+
<!-- Se deben cambiar los parametros reales-->
18+
<collision>
19+
<origin xyz="9.85 27.9 -8.45" rpy="0.0 0.0 0.0"/>
20+
<geometry>
21+
<mesh filename="${visual_mesh_file}" scale="1 1 1" />
22+
</geometry>
23+
</collision>
24+
25+
<inertial>
26+
<origin xyz="9.85 27.9 -8.45" rpy="0.0 0.0 0.0"/>
27+
<mass value="1"/>
28+
<inertia
29+
ixx="1.0" ixy="0.0" ixz="0.0"
30+
iyy="1.0" iyz="0.0"
31+
izz="1.0"/>
32+
</inertial>
33+
</link>
34+
<gazebo reference="bottle_base">
35+
<selfCollide>0</selfCollide>
36+
<turnGravityOff>1</turnGravityOff>
37+
</gazebo>
38+
39+
40+
</robot>

uv_worlds/urdf/gate.xacro

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<robot name="gate_1" xmlns:xacro="http://www.ros.org/wiki/xacro">
33

44
<!-- Introducir meshes -->
5-
<xacro:property name="visual_mesh_file" value="file://$(find uv_worlds)/models/props//mygate1.dae" />
5+
<xacro:property name="visual_mesh_file" value="file://$(find uv_worlds)/models/gate1/mygate1.dae" />
66

77
<!-- <origin xyz="0.085 (0 -0.085) 0 0" rpy="0.0 0.0 1.57075"/> -->
88

uv_worlds/urdf/mapa1.xacro

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0"?>
2+
<robot name="mapa1_1" xmlns:xacro="http://www.ros.org/wiki/xacro">
3+
4+
<!-- Introducir meshes -->
5+
<xacro:property name="visual_mesh_file" value="file://$(find uv_worlds)/newworlds/mapa_1_1.dae"/>
6+
7+
<!-- <origin xyz="0.085 (0 -0.085) 0 0" rpy="0.0 0.0 1.57075"/> -->
8+
9+
<link name="mapa1_base">
10+
<visual>
11+
<origin xyz="0 0 -7" rpy="0.0 0.0 0"/>
12+
<geometry>
13+
<mesh filename="${visual_mesh_file}" scale="1 1 1" />
14+
</geometry>
15+
</visual>
16+
17+
<!-- Se deben cambiar los parametros reales-->
18+
<collision>
19+
<origin xyz="0 0 -7" rpy="0.0 0.0 0.0"/>
20+
<geometry>
21+
<mesh filename="${visual_mesh_file}" scale="1 1 1" />
22+
</geometry>
23+
</collision>
24+
25+
<inertial>
26+
<origin xyz="0 0 -7" rpy="0.0 0.0 0.0"/>
27+
<mass value="1"/>
28+
<inertia
29+
ixx="1.0" ixy="0.0" ixz="0.0"
30+
iyy="1.0" iyz="0.0"
31+
izz="1.0"/>
32+
</inertial>
33+
34+
</link>
35+
<gazebo reference="mapa1_base">
36+
<selfCollide>0</selfCollide>
37+
<turnGravityOff>1</turnGravityOff>
38+
</gazebo>
39+
40+
</robot>

uv_worlds/worlds/lake.world

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17+
<!--<plugin name="ros_link_attacher_plugin" filename="libgazebo_ros_link_attacher.so"/>-->
1718
<sdf version="1.5">
1819
<world name="lake">
1920
<physics name="default_physics" default="true" type="ode">
@@ -70,6 +71,7 @@
7071
<pose>0 0 0 0 0 0</pose>
7172
</include>
7273

74+
7375
<!-- <plugin name="underwater_current_plugin" filename="libuuv_underwater_current_ros_plugin.so">
7476
<namespace>hydrodynamics</namespace>
7577
<constant_current>

uv_worlds/worlds/lake_challenges.world

+1-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@
583583
</link>
584584
<pose frame=''>3.48 1.21 0 0 -0 0</pose>
585585
</model>
586-
<model name='manPole2'>
586+
<model name='manPole2'>+
587587
<link name='basepole_link'>
588588
<pose frame=''>0 0 0 0 -0 0</pose>
589589
<inertial>

0 commit comments

Comments
 (0)