Skip to content

PUTvision/robotics_camera_calibration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Robotics 1 - Camera calibration course

  • clone the repository
git clone https://github.com/PUTvision/robotics_camera_calibration.git
  • go to the repository directory
cd robotics_camera_calibration
  • build the container
docker build -t ros2_calibration . --no-cache

Note: This conteinter uses ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST by default.

  • add docker access to the screen:
xhost +local:root

XAUTH=/tmp/.docker.xauth
if [ ! -f $XAUTH ]
then
    xauth_list=$(xauth nlist :0 | sed -e 's/^..../ffff/')
    if [ ! -z "$xauth_list" ]
    then
        echo $xauth_list | xauth -f $XAUTH nmerge -
    else
        touch $XAUTH
    fi
    chmod a+r $XAUTH
fi
  • run the container
docker run -it \
    --env="DISPLAY=$DISPLAY" \
    --env="QT_X11_NO_MITSHM=1" \
    --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ 
    --env="XAUTHORITY=$XAUTH" \
    --volume="$XAUTH:$XAUTH" \
    --privileged \
    --network=host \ 
    --name="ros2_calibration" \
    ros2_calibration \
    bash

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published