Browse Source

renaming and cleanup

Rodja Trappe 1 year ago
parent
commit
986ca2ec67
2 changed files with 8 additions and 8 deletions
  1. 2 1
      examples/ros2/README.md
  2. 6 7
      examples/ros2/docker-compose.yml

+ 2 - 1
examples/ros2/README.md

@@ -1,7 +1,8 @@
 # ROS2 Example
 # ROS2 Example
 
 
 This example is a basic ROS2 implementation with NiceGUI.
 This example is a basic ROS2 implementation with NiceGUI.
-It starts up a virtual joystick on a local webpage (127.0.0.1:8000), that publishes messages on the /turtle1/twist topic for an instance of turtlesim_node to be controlled.
+It starts up a virtual joystick on a local webpage (127.0.0.1:8000),
+that publishes messages on the /turtle1/twist topic for an instance of turtlesim_node to be controlled.
 ROS2 and NiceGUI are fully functional in this example, changes to the code will trigger a restart of the full ROS2 Node.
 ROS2 and NiceGUI are fully functional in this example, changes to the code will trigger a restart of the full ROS2 Node.
 
 
 ## Run
 ## Run

+ 6 - 7
examples/ros2/docker-compose.yml

@@ -1,21 +1,20 @@
-version: '3'
+version: "3"
 services:
 services:
-  joystick_example:
+  nicegui:
     build:
     build:
       context: .
       context: .
-      dockerfile: Dockerfile
     ports:
     ports:
       - 8000:8000
       - 8000:8000
     volumes:
     volumes:
       - ./ros2_ws/src:/ros2_ws/src
       - ./ros2_ws/src:/ros2_ws/src
     command: ros2 run nicegui_ros2 nicegui_node
     command: ros2 run nicegui_ros2 nicegui_node
 
 
-  turtle_sim:
+  turtlesim:
     image: osrf/ros:humble-desktop
     image: osrf/ros:humble-desktop
-    environment: 
+    environment:
       - DISPLAY
       - DISPLAY
-    volumes: 
+    volumes:
       - /tmp/.X11-unix:/tmp/.X11-unix:rw
       - /tmp/.X11-unix:/tmp/.X11-unix:rw
     command: ros2 run turtlesim turtlesim_node
     command: ros2 run turtlesim turtlesim_node
     depends_on:
     depends_on:
-      - joystick_example
+      - nicegui