Skip to content

Commit 688a3ad

Browse files
committed
Update basestate tutorial
1 parent 4e4ffec commit 688a3ad

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

tutorial/basestate/README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@
99
~~~
1010

1111
- 2nd terminal:
12+
- Update the `GZ_SIM_RESOURCE_PATH` environment variable to point to the `tutorial` folder:
1213

13-
~~~
14-
cd tutorial/basestate
15-
gz sim model.sdf
16-
~~~
14+
~~~
15+
export GZ_SIM_RESOURCE_PATH = $GZ_SIM_RESOURCE_PATH:<path-to-tutorial-folder>
16+
~~~
17+
18+
- Then, launch Gazebo:
19+
20+
~~~
21+
cd <path-to-tutorial-folder>/basestate
22+
gz sim model.sdf
23+
~~~
1724
1825
- 3rd terminal:
1926

tutorial/basestate/model.sdf

+1-2
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@
8787
<yarpConfigurationString>(yarpDeviceName basestate_plugin_device) (baseLink link_1)</yarpConfigurationString>
8888
</plugin>
8989
<plugin name="gzyarp::RobotInterface" filename="gz-sim-yarp-robotinterface-system">
90-
<yarpRobotInterfaceConfigurationFile>basestate_nws.xml</yarpRobotInterfaceConfigurationFile>
90+
<yarpRobotInterfaceConfigurationFile>model://basestate/basestate_nws.xml</yarpRobotInterfaceConfigurationFile>
9191
</plugin>
9292
</model>
93-
9493
</world>
9594
</sdf>

0 commit comments

Comments
 (0)