Skip to content

Commit

Permalink
package rename
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshv24 committed Jun 24, 2024
1 parent 1aedcf4 commit 13c02f6
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions examples/dave_demos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ This method simplifies the process by pulling the model directly from Fuel, ensu

If you prefer to use model files downloaded from Fuel, proceed as follows:

1. Add a hook within the `dave_models` package to configure the necessary environment variables for Gazebo model lookup.
1. Add a hook within the `dave_object_models` package to configure the necessary environment variables for Gazebo model lookup.

```bash
cd <path-to-dave_ws>/src/dave/models/dave_models
cd <path-to-dave_ws>/src/dave/models/dave_object_models
mkdir hooks && cd hooks
touch dave_models.dsv.in
echo "prepend-non-duplicate;GZ_SIM_RESOURCE_PATH;@CMAKE_INSTALL_PREFIX@/share/@PROJECT_NAME@" >> dave_models.dsv.in
touch dave_object_models.dsv.in
echo "prepend-non-duplicate;GZ_SIM_RESOURCE_PATH;@CMAKE_INSTALL_PREFIX@/share/@PROJECT_NAME@" >> dave_object_models.dsv.in
```

2. Append the following line to the CMakeLists.txt file in the `dave_models` package:
2. Append the following line to the CMakeLists.txt file in the `dave_object_models` package:

```bash
ament_environment_hooks("${CMAKE_CURRENT_SOURCE_DIR}/hooks/${PROJECT_NAME}.dsv.in")
Expand Down
2 changes: 1 addition & 1 deletion examples/dave_demos/launch/model_in_empty_world.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def generate_launch_description():
[
PathJoinSubstitution(
[
FindPackageShare("dave_models"),
FindPackageShare("dave_object_models"),
"launch",
"upload_model.launch.py",
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
cmake_minimum_required(VERSION 3.8)
project(dave_models)
project(dave_object_models)

find_package(ament_cmake REQUIRED)

install(
DIRECTORY description launch meshes
DESTINATION share/dave_models
DESTINATION share/dave_object_models
)

ament_environment_hooks(
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def generate_launch_description():

description_file = PathJoinSubstitution(
[
FindPackageShare("dave_models"),
FindPackageShare("dave_object_models"),
"description",
model_name,
"model.sdf",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">

<name>dave_models</name>
<name>dave_object_models</name>
<version>0.1.0</version>
<description> Dave model description files are placed here. </description>

Expand Down

0 comments on commit 13c02f6

Please sign in to comment.