You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [WIP] Robot streaming works
* Finalized WebRTC implementation
* Added playwright
* Got it working on lovelace and with Amal's phone
* Update README
* Re-add PORT given the .env variable must be REACT_APP_PORT
* Removed unnecessary logging
Copy file name to clipboardExpand all lines: feedingwebapp/README.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ The overall user flow for this robot can be seen below.
22
22
4. Source the directory: `source install/setup.bash`
23
23
5. Navigate to the web app folder: `cd feeding_web_interface/feedingwebapp`
24
24
6. Install web app dependencies: `npm install --legacy-peer-deps`
25
+
1. You may also have to run `npx playwright install`; you might be prompted to run that after `node --env-file=.env start_robot_browser.js`
25
26
* Consider checking out the Troubleshooting section if there are errors in this process.
26
27
If your workspace has already been built, you should run `source install/setup.bash`. If this is your first time building your workspace, you should `source /opt/ros/humble/setup.bash` and then run `colcon build` followed by `source install/setup.bash`. For both of the above cases, you must be in the main directory of your workspace (e.g., `src` should be a subfolder).
27
28
@@ -31,7 +32,9 @@ If your workspace has already been built, you should run `source install/setup.b
31
32
- If you're not running the robot code alongside the app, set `REACT_APP_DEBUG=true` in `.env` to be able to move past screens where the app is waiting on the robot. The default is `REACT_APP_DEBUG=false`.
32
33
- If users will be accessing the app on a device other than the device running ROS, change `REACT_APP_ROS_SERVER_HOSTNAME` in `.env` to be the hostname of the device running ROS. Ensure that device is configured so that ports 8080 (web_video_server default) and 9090 (rosbridge default) can be accessed.
33
34
3. Start the app: `npm start`
34
-
4. Use a web browser to navigate to `localhost:3000` to see the application.
35
+
4. Start the WebRTC signalling server: `node --env-file=.env server.js`
36
+
5. Start the headless robot browser: `node --env-file=.env start_robot_browser.js`
37
+
6. Use a web browser to navigate to `localhost:3000` to see the application.
35
38
36
39
#### Launching Dummy Nodes
37
40
This repository includes several dummy nodes that match the interface that the robot nodes will use. By running the dummy nodes alongside the app, we can test the app's communication with the robot even without actual robot code running.
@@ -108,3 +111,4 @@ Note that we use `npm`, not `yarn`, to manage dependencies for this project.
108
111
109
112
## Troubleshooting
110
113
* While installing, if you run into an error about `PUPPETEER`, the fix is to just follow the instructions provided in console and to actually disable it.
114
+
* If you get an error says `--env-file` is a bad option, you have to update your `node` verion.
0 commit comments