Falko Schindler bd342113f2 fix some minor issues in examples 8 月之前
..
ros2_ws 94cc62c831 [code-style] Introduce ruff as an isort replacement and add a pre-commit hook (#2619) 1 年之前
Dockerfile 94cc62c831 [code-style] Introduce ruff as an isort replacement and add a pre-commit hook (#2619) 1 年之前
README.md f84a8e5683 add screenshot to ros2 example 1 年之前
docker-compose.yml bd342113f2 fix some minor issues in examples 8 月之前
ros_entrypoint.sh 94cc62c831 [code-style] Introduce ruff as an isort replacement and add a pre-commit hook (#2619) 1 年之前

README.md

ROS2 Example

This example is a basic ROS2 implementation with NiceGUI. It starts up a user interface with virtual joystick and pose visualization reachable through http://127.0.0.1:8080. The joystick publishes twist messages which are consumed by a simple simulator node which itself publishes the new pose of a virtual mobile robot. ROS2 and NiceGUI are fully functional in this example.

Over all it is a bit more complex than a super minimal example to allow auto-reloading of the NiceGUI ROS2 node.

Screen Shot 2023-06-26 at 09 36 47

Usage

Change into the examples/ros2 folder and run:

docker compose up --build

Afterwards you can access the user interface at http://127.0.0.1:8080.

If you want to run the NiceGUI node locally or in your own ROS2 project, you can simply copy the code from the ros2_ws/src/gui folder.