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

docs: add ros noetic example #2271

Merged
merged 5 commits into from
Oct 17, 2024
Merged
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
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
Loading