- Install Docker Desktop for Windows
- Run the container
docker run --name ros -d -p 5901:5901 -p 6901:6901 -p 11311:11311 -p 9090:9090 henry2423/ros-vnc-ubuntu:melodic
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt-key del 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install ros-melodic-image-view
sudo apt-get install ros-melodic-camera-calibration
sudo apt-get install ros-melodic-image-proc
sudo apt-get install ros-melodic-apriltag-ros
sudo apt-get install ros-melodic-rosbridge-server
sudo apt-get install ros-melodic-video-stream-opencv
rosrun video_stream_opencv test_video_resource.py rtsp://viewer:viewer@192.168.1.50/axis-media/media.amp
roscore
roslaunch rosbridge_server rosbridge_websocket.launch
rosrun rqt_graph rqt_graph
rosrun rqt_image_view rqt_image_view
rosrun rviz rviz
cd /home/ros/Desktop/gps/
roslaunch mycamera.launch
cd /home/ros/Desktop/gps/
roslaunch my_continuous_detection.launch
See http://wiki.ros.org/camera_calibration/Tutorials/MonocularCalibration
rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.0348 image:=/camera/image_raw camera:=/camera
- The small board is
0.0348
and the large is0.076
.
- The small board is
- Find the calibration data in
/tmp/calibrationdata.tar.gz
- Extract the calibration data
mkdir /tmp/calibrationdata/
tar xvzf /tmp/calibrationdata.tar.gz -C /tmp/calibrationdata/
- Get the calibration file
cat /tmp/calibrationdata/ost.yaml
- Run the camera image capturing
- View the undistorted image
ROS_NAMESPACE=camera rosrun image_proc image_proc
See https://hub.docker.com/r/elcalan/rovergps
Build the image
docker build -t elcalan/rovergps:latest .
Run the image
docker run -it --rm --name gps --env "CAMERA_IP=192.168.1.50" -p 11311:11311 -p 9090:9090 -v $(pwd)/RoverGps:/home/ros/gps elcalan/rovergps:latest
Run a Bash inside the container
docker run -it --rm --name gps -p 11311:11311 -p 9090:9090 -v $(pwd)/RoverGps:/home/ros/gps elcalan/rovergps:latest /bin/bash
Attach with a new Bash to the running container
docker exec -it gps /bin/bash
source /opt/ros/melodic/setup.bash