bluerov development platform for marine mechatronics class for master-mir program -
copy paste the commands below onto a terminal from your pc or to the mir room pc
- Install Docker on your PC.
- Download the image from Docker Hub
docker pull gshubham96/bluerov_dev
- Clone this repo where you want to store the data.
git clone https://github.com/gshubham96/bluerov_dev.git && cd bluerov_dev
- Extract the volume.zip folder
- Add the network interface to your PC with the following configs (If you'd like to connect to the BlueROV)
static_ip: 192.168.254.20
DNS: 255.255.255.0
gateway_ip: 192.168.254.1
If You are on Linux
- Create a docker network with the following command
docker network create -d macvlan --subnet=192.168.254.0/24 --gateway=192.168.254.1 -o parent=enx00e04c3603d0 net_bluerov
enx00e04c3603d0
is the network driver address. It might be different for you. Find this with the command ifconfig
.
- To enable VNC, do the following (optional) https://collabnix.com/2-minutes-to-docker-macvlan-networking-a-beginners-guide/
sudo ip link add mac0 link <network_driver_addr> type macvlan mode bridge
sudo ip addr add 192.168.254.19/24 dev mac0
sudo ifconfig mac0 up
If You are on Linux move to directory where volume was extracted and run this command
docker run -it --rm --name marine_mech -v $(pwd)/volume:/home/ubuntu/Desktop -p 6080:80 --shm-size=512m --net=net_bluerov --ip=192.168.254.15 --device=/dev/input/js0 gshubham96/bluerov_dev
If You are on Windows move to directory where volume was extracted and run this command
docker run -it --rm --name marine_mech -v ${pwd}/volume:/home/ubuntu/Desktop -p 6080:80 --shm-size=512m gshubham96/bluerov_dev
docker exec -it marine_mech /bin/bash
browse: http://192.168.254.15:6080/ or http://127.0.0.1:6080/
- Code is located in the directory
\home\catkin_ws\Desktop
get portable vs code from here
- Download the 64-bit .tar.gz from https://code.visualstudio.com/download#
install this extenstion for docker access
- Go here and click the "Download Extension" button. https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
- In VS Code, press "F1" and search for "Install from VSIX" and select the above downloaded file
- After installation, press "F1" and search for "Attach to Running Container" to connect docker and VS-Code for easy development. ^_^
- enjoy life with a good beer/cola.