Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better world launch #89

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions auv_sim/auv_sim_bringup/launch/inc/start_world.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<launch>
<arg name="gui" default="true" />
<arg name="debug" default="false" />
<arg name="world_name" default="$(find auv_sim_description)/worlds/seabed.world" />
<arg name="world_name"/>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already specify the default world in the main launch file. Why choose a default one here again? Deleted.

<arg name="namespace" default="taluy" />
<arg name="velocity_control" default="true" />
<arg name="joy_id" default="0" />
Expand All @@ -16,8 +16,9 @@
<arg name="verbose" value="true" />
</include>

<node name="publish_world_models" pkg="uuv_assistants" type="publish_world_models.py"
output="screen">
<node if="$(eval arg('world_name') == '$(find auv_sim_description)/worlds/seabed.world')"
name="publish_world_models" pkg="uuv_assistants" type="publish_world_models.py"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This node is only relevant to the seabed world. Dont need it at times we run a world that is not the seabed world.

output="screen">
<rosparam command="load" file="$(find auv_sim_bringup)/config/world_models.yaml" />
</node>
</launch>
5 changes: 3 additions & 2 deletions auv_sim/auv_sim_bringup/launch/start_gazebo.launch
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?xml version="1.0"?>
<launch>
<env name="GAZEBO_MODEL_PATH" value="$(find auv_sim_description)/models:${GAZEBO_MODEL_PATH}"/>
Copy link
Author

@eminmeydanoglu eminmeydanoglu Dec 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set gazebo model path automatically for everyone for convenience. Works as intended 👍

<arg name="namespace" default="taluy" />
<arg name="control_rate" default="20.0" />
<arg name="use_ned_frame" default="false" />
<arg name="reference_frame" value="world" />

<arg name="use_gui" default="true" />
<arg name="debug" default="false" />
<arg name="world_name" default="$(find auv_sim_description)/worlds/seabed.world" />
<arg name="world_name" default="$(find auv_sim_description)/worlds/pool.world" />
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Under normal circumstances, it is preferable to set the pool world as default.

<arg name="velocity_control" default="true" />
<arg name="joy_id" default="0" />

Expand Down
Loading