This Image can use in Linux OS and windows OS with Installed WSL (Windows Subsystem for Linux) or using CMD
Pull docker images
Pull the images from docker hub using the command:
Build container
a. To build container in Linux OS you can use the command:
docker run -it --privileged=true --net=host -e DISPLAY --volume /tmp/.x11-unix --env QT_X11_NO_MITSHM=1 --name >name-container< anto112/ros_lsd_slam /bin/bash
b. To build container in windows OS with Installed WSL (Windows Subsystem for Linux) or using CMD you must install Xserver such as in here I use X410:
*>name-container< =modify this name with your own
Get in to container
a. If you want to access the container from Linux OS use the command:
b. If you want to access the container from windows OS with Installed WSL (Windows Subsystem for Linux) or using CMD use the command:
Test the image can work
The easy way to test ROS(Robot Operating System) node is running the turtle simulator. Both of Linux OS of windows OS with Installed WSL (Windows Subsystem for Linux) is same. follow this guide to running that using docker container:
a. starting roscore
After you get in terminal of container, typing the comand roscore . that have function for collection of nodes and programs that are pre-requisites of a ROS-based system. You must have a roscore running in order for ROS nodes to communicate .
b. run turtle simulator
you just need typing the command:
rosrun turtlesim turtlesim_node
that command will launch the user interface of turtle simulator like picture bellow this.
c. the last is typing command for controller the turtle:
rosrun turtlesim turtle_teleop_key
Content type
Image
Digest
Size
696.9 MB
Last updated
about 7 years ago
docker pull anto112/ros_lsd_slam