Skip to content

Commit

Permalink
updated README and minor code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshv24 committed Jun 20, 2024
1 parent 1c27b13 commit 8e4df54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dave_demos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To launch a Dave model directly from a Fuel URI, follow these steps:
2. Launch the model using the specified launch file:

```bash
ros2 launch dave_demos mossy_cinder_block.launch.py
ros2 launch dave_demos model_in_empty_world.launch.py model_name:='mossy_cinder_block'
```

This method simplifies the process by pulling the model directly from Fuel, ensuring you always have the latest version without needing to manage local files.
Expand Down Expand Up @@ -47,7 +47,7 @@ If you prefer to use model files downloaded from Fuel, proceed as follows:
4. Launch the model using the provided launch file:

```bash
ros2 launch dave_demos nortek_dvl500_300_bare_model.launch.py
ros2 launch dave_demos model_in_empty_world.launch.py model_name:='nortek_dvl500_300'
```

This approach gives you more control over the models you use, allowing for offline use and customization. It's especially useful when working in environments with limited internet connectivity or when specific model versions are required.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription
from launch.substitutions import (
LaunchConfiguration,
PathJoinSubstitution,
TextSubstitution,
)
PathJoinSubstitution
)
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.conditions import IfCondition
from launch_ros.substitutions import FindPackageShare
Expand Down
9 changes: 3 additions & 6 deletions dave_model_description/launch/upload_model.launch.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from launch import LaunchDescription
from launch.actions import (DeclareLaunchArgument, RegisterEventHandler, LogInfo)
from launch.actions import DeclareLaunchArgument, RegisterEventHandler, LogInfo
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution
from launch.conditions import IfCondition
from launch_ros.substitutions import FindPackageShare
Expand Down Expand Up @@ -46,11 +46,8 @@ def generate_launch_description():

event_handlers = [
RegisterEventHandler(
OnProcessExit(
target_action=gz_spawner,
on_exit=LogInfo(msg='Model Uploaded'))
)
OnProcessExit(target_action=gz_spawner, on_exit=LogInfo(msg="Model Uploaded"))
)
]


return LaunchDescription(args + nodes + event_handlers)

0 comments on commit 8e4df54

Please sign in to comment.