Install node.js and npm using these commands:
sudo apt-get install nodejs
sudo apt-get install npm
Install the dependencies:
npm install
Run the server:
npm start
-
Start the rosbridge server on the rover using
ros2 launch urc_bringup websocket.launch.py
. Then find the ip of the rover usinghostname -I
. -
Input the host IP into the dashboard and click connect. Make sure that the Status -> Rosbridge indicator is green.
-
You can enable/disable the rover using the dropdown.
-
You can change what mode the rover is in. Auto is for autonomous mode, and Teleop is for manual mode. Test is for simulation only mode.
-
If you want to use a controller with the dashboard, make sure you have the necessary drivers installed. Then, plug in the controller and wiggle around the joysticks or press a couple buttons to make sure it is connected (if nothing happens, then your drivers didnt install properly and javascript cannot see the controllers). Then, choose the controller you want to use for driving the rover and operating the arm.
-
You can see the statuses of rosbridge and the rover in the status panel.
-
If you want to use the maps in offline mode, download the tiles from this link and place them in the
public/static
folder. I have offline tiles for the competitiion area in this folder. -
You can add and delete waypoints in the waypoints panel
-
The waypoints are displayed on the map using blue markers, and the robot is displayed using a green "R" marker.
-
The odometery of the rover is displayed in the odometery panel.