LCAS / CallARobot

A simple web interface to call a robot
MIT License
3 stars 10 forks source link

CallARobot

A simple web interface to call a robot

Use in Docker

  1. clone this repository: git clone https://github.com/LCAS/CallARobot.git
  2. go into the .devcontainer directory: cd .devcontainer
  3. run docker compose up -d
  4. find the port to access the car server: docker compose port nginx 80, it should show something like 0.0.0.0:32881
  5. open you browser to go to http://localhost:PORTNUMBER, in the above case it would be http://localhost:32881

Use Devcontainer

Even easier may be to use the devcontainer in VSCode:

  1. In VSCode open the repository
  2. It should prompt you to open as devcontainer
  3. Once start, under ports, the forwarded port for the CAR server is found
  4. In the VSCode terminal, run python callarobot.py and you should be able to access it under the "CAR server" forwarded port

Installation

run sudo pip install -r requirements.txt

Start Server

Start Client (usues ROS if available)

Using as ROS Client

The demo client ws_client will start as ROS node if it find rospy module

Apache config

<Location /rasberry/car>
    SSLRequireSSL
    SetEnv proxy-initial-not-pooled
    Order allow,deny
    Allow from all
    ProxyPass http://localhost:8127/car
    ProxyPassReverse http://localhost:8127/rasberry/car
</Location>

<LocationMatch "/rasberry/car/ws">
    SSLRequireSSL
    ProxyPassMatch ws://localhost:8128/ disablereuse=On
    ProxyPassReverse ws://localhost:8128/
    Order allow,deny
    Allow from all
    #LogLevel Debug
</LocationMatch>