Skip to content

Commit

Permalink
docs: add ros noetic example (#2271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts authored Oct 17, 2024
1 parent 9a68133 commit 5914bbe
Show file tree
Hide file tree
Showing 5 changed files with 81,293 additions and 30,521 deletions.
58 changes: 55 additions & 3 deletions examples/turtlesim/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Simple ROS2 turtlesim example
# Simple ROS turtlesim example

Run this in two terminals.
## To run the ROS2 humble example
Run this in **two** terminals.
```shell
pixi run start
```
And
Select the `default` environment for all of the `humble` examples.

And then
```shell
pixi run teleop
```
Expand All @@ -15,3 +18,52 @@ There you can run any of the commands available in the environment.
pixi shell
ros2 topic echo /turtle1/cmd_vel
```

### Now run a script to visualize the turtle in rviz
Run this in **two** more terminals.
```shell
pixi run rviz
```

```shell
pixi run viz
```

## To run the ROS1 Noetic example

Run this in **three** terminals.
```shell
# Start roscore
pixi run -e noetic core
```
or without `-e noetic` and select the `noetic` environment for all of the `noetic` examples.

```shell
# Start turtlesim
pixi run -e noetic start
```

```shell
pixi run -e noetic teleop
```

It is also possible to start a shell in the environment.
There you can run any of the commands available in the environment.
```shell
pixi shell -e noetic
rostopic echo /turtle1/cmd_vel
```

### Now run a script to visualize the turtle in rviz
Run this in **two** more terminals.
```shell
pixi run -e noetic rviz
```

```shell
pixi run -e noetic viz
```

Add the visual marker for the turtle to the displays in rviz.

If you now teleop the turtle, you should see it move in rviz aswell now.
Loading

0 comments on commit 5914bbe

Please sign in to comment.