- ROS2
- Nodejs (I'm using https://github.com/RobotWebTools/rclnodejs.git )
public/index.html
- This is a client-side interface. The user will input the data and submit.
- After the user click submit button, JavaScript in the index.html will send the POST request to the server server.js
- The server handle the HTTP request from the client.
- When user open localhost:3000 on the browser, the server will serves the index.html file.
- The server will listens for POST request from the client side, then publish to the ROS using rclnodejs
- Install ROS and Nodejs
- Install librarty npm init -y npm install express npm install body-parser npm install rclnodejs
- cd web-ui-ros2
- node server.js
- Go to localhost:3000 on the browser
- Open the turtlebotsim_gui ros2 run turtlesim turtlesim_node
- Submit the float data in the browser to move the robot forward