-
Clone the source codes
-
file structure:
${HOME}/Workspace/dashgo_ws
for this repo. This is a catkin ws.${HOME}/Workspace/rosweb_ws
for the web controller.
note: Foler paths are mounted in
docker run
params, if you really need to change the paths, change the host paths in the mounting options inMakefile
cd ${HOME}/Workspace/
git clone git@github.com:LXYYY/dashgo.git dashgo_ws/src/dashgo
git clone git@github.com:LXYYY/rosweb_controller.git rosweb_ws
-
-
Install docker. Since the source code provided is based on Ubuntu14, also tested on 16, anyway it's better to use it inside a docker.
-
Compile the docker
cd dashgo git submodule update --init --recursive cd dashgo_docker && make build
-
compile the dashgo driver inside docker
cd dashgo_docker && make attach # now you inside docker cd ${HOME}/Workspace/dashgo_ws catkin init catkin config --extend /opt/ros/kinetic --merge-devel catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release catkin build dashgo_driver
-
Run the nodes
cd dashgo_docker && sh dashgo_startup_host.sh # run this outside docker and this will also start the web controller
(inside docker)
- Install modules of the website using npm, by npm install or something, I can't remember, look it up!
- Change the ip of the robot manually, here. I know this is really stupid, maybe change it to
0.0.0.0
will be a good idea. And you can change speed limit here. - Then find a cellphone, open a browser. Only works on some old browser, i.e. Edge, or some android-built-in browser. Chrome, Firefox, Safari... None of them can work
- Open the address
<RobotIP>:8000
, and change the rosbridge address on the website to the address in Step 2.8000
is the http port for the website,9090
you will find in Step 2 is the rosbridge port for control. - Click
Connect
, and use the on-screen joystick to control. The joystick is not very handy, need some practice.
Pain in the ass:
- Change ip every time connected to a new network.