Sign inSign up

dtur3/ros-tutorials

By dtur3

Updated over 8 years ago

ROS tutorials. https://github.com/DTU-R3/Docker-ROS/tree/master/r3-tutorials

Image
0

1.6K

dtur3/ros-tutorials repository overview

DTU-R3: Docker + ROS tutorials

Use

See main README and Docker/ROS documentation.

#Start a ROS master; only if you have no existing master running:
sudo docker run -it --rm --net ros_network --name ros_master dtur3/r3-tutorials roscore
#Start a Docker nework; only if you do not have one already:
sudo docker network create ros_network

# Start two ROS nodes:
sudo docker run -it --rm \
	--network host --uts host \
	--name talker dtur3/r3-tutorials \
	rosrun roscpp_tutorials talker

sudo docker run -it --rm \
	--network host --uts host \
	--name listener dtur3/r3-tutorials \
	rosrun roscpp_tutorials listener

# Another way to echo the data, using the rostopic command
sudo docker run -it --rm \
	--network host --uts host \
	dtur3/r3-tutorials \
	rostopic echo /chatter

Development

git clone https://github.com/DTU-R3/Docker-ROS.git
cd ./Docker-ROS/r3-tutorials/
sudo docker build --tag dtur3/r3-tutorials .

sudo docker login

arch=`dpkg --print-architecture`
if [[ $arch =~ ^arm ]]; then arch="arm";
elif [[ $arch =~ ^amd64 ]]; then arch="amd64";
else echo "Unsupported architecture" >&2; exit 1; fi
echo "Architecture: $arch"

sudo docker tag dtur3/r3-tutorials dtur3/r3-tutorials:$arch
sudo docker push dtur3/r3-tutorials:$arch

#push manifest - method while waiting for https://github.com/docker/cli/pull/138
sudo docker run --rm -v ~/.docker/config.json:/root/.docker/config.json -v $(pwd):/host weshigbee/manifest-tool push from-spec /host/manifest.yaml

Tag summary

Content type

Image

Digest

Size

404.1 MB

Last updated

over 8 years ago

docker pull dtur3/ros-tutorials