Skip to content

Commit e42b87b

Browse files
committed
added notes for running Blender
1 parent b394444 commit e42b87b

File tree

8 files changed

+39
-20
lines changed

8 files changed

+39
-20
lines changed

hydro/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# docker build -t $USER/ros-hydro-deps .
1+
# docker build -t opencog/ros-hydro-deps .
22
# xhost +
3-
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t $USER/ros-hydro-deps /bin/bash
3+
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t opencog/ros-hydro-deps /bin/bash
44
# docker run -t -i --rm --privileged -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -v /home/mandeep/sharedFolder:/tmp/shared -v /dev/video0:/dev/video0 mandeep/ros-hydro-deps /bin/bash
55
# xhost + is stupid and dangerous, so please run 'xhost -' after launching apps
66
# camorama -d /dev/video0
7-
# docker export $USER/ros-hydro | gzip -c > /media/lenovo_mandeep/ros-hydro-deps.tgz
8-
# docker import $USER/ros-hydro < /media/lenovo_mandeep/ros-hydro.tgz
7+
# docker export opencog/ros-hydro | gzip -c > /media/lenovo_mandeep/ros-hydro-deps.tgz
8+
# docker import opencog/ros-hydro < /media/lenovo_mandeep/ros-hydro.tgz
99
# echo 'DOCKER_OPTS="-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock"' \
1010
# | sudo tee -a /etc/default/docker
1111

hydro/dev/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# docker build -t $USER/ros-hydro-dev .
1+
# docker build -t opencog/ros-hydro-dev .
22
# xhost +
3-
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t $USER/ros-hydro-dev /bin/bash
3+
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t opencog/ros-hydro-dev /bin/bash
44
# docker run -t -i --rm --privileged -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -v /home/mandeep/sharedFolder:/tmp/shared -v /dev/video0:/dev/video0 mandeep/ros-hydro-dev /bin/bash
55

66
FROM opencog/ros-hydro-deps

hydro/openni/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# docker build -t $USER/ros-hydro-openni .
1+
# docker build -t opencog/ros-hydro-openni .
22
# xhost +
3-
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t $USER/ros-hydro-openni /bin/bash
3+
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t opencog/ros-hydro-openni /bin/bash
44
# docker run -t -i --rm --privileged -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -v /home/mandeep/sharedFolder:/tmp/shared -v /dev/video0:/dev/video0 mandeep/ros-hydro-openni /bin/bash
55
# from https://github.com/OpenNI/OpenNI
66

hydro/percept/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# docker build -t $USER/ros-hydro-percept .
1+
# docker build -t opencog/ros-hydro-percept .
22
# xhost +
3-
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t $USER/ros-hydro-percept /bin/bash
3+
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t opencog/ros-hydro-percept /bin/bash
44
# docker run -t -i --rm --privileged -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -v /home/mandeep/sharedFolder:/tmp/shared -v /dev/video0:/dev/video0 mandeep/ros-hydro-percept /bin/bash
55
# from https://github.com/OpenNI/OpenNI
66

indigo/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# docker build -t $USER/ros-indigo-deps .
1+
# docker build -t opencog/ros-indigo-deps .
22
# xhost +
3-
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t $USER/ros-indigo-deps /bin/bash
3+
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t opencog/ros-indigo-deps /bin/bash
44
# docker run -t -i --rm --privileged -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -v /home/mandeep/sharedFolder:/tmp/shared -v /dev/video0:/dev/video0 mandeep/ros-indigo-deps /bin/bash
55
# xhost + is stupid and dangerous, so please run 'xhost -' after launching apps
66
# camorama -d /dev/video0
7-
# docker export $USER/ros-indigo | gzip -c > /media/lenovo_mandeep/ros-indigo-deps.tgz
8-
# docker import $USER/ros-indigo < /media/lenovo_mandeep/ros-indigo.tgz
7+
# docker export opencog/ros-indigo | gzip -c > /media/lenovo_mandeep/ros-indigo-deps.tgz
8+
# docker import opencog/ros-indigo < /media/lenovo_mandeep/ros-indigo.tgz
99
# echo 'DOCKER_OPTS="-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock"' \
1010
# | sudo tee -a /etc/default/docker
1111

indigo/blender/Dockerfile

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
1-
# docker build -t $USER/ros-indigo-blender .
1+
# docker build -t opencog/ros-indigo-blender .
22
# xhost +
33
# docker run --rm --privileged -i -v /dev/ttyACM0:/dev/ttyACM0 -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -v /dev/dri:/dev/dri -v /dev/shm:/dev/shm -e DISPLAY=:0.0 -t opencog/ros-indigo-blender
4+
# to test: click Run Script button in Blender window.
5+
# to interact on the cli, exit Blender then:
6+
# killall roscore
7+
# tmux
8+
# roscore
9+
# ^bc
10+
# source /catkin_ws/devel/setup.bash
11+
# blender robo.blend
12+
### Blender: click Run Script
13+
# ^bc
14+
# rostopic list
15+
# rostopic echo /cmd_pololu
16+
### Blender: right-click & drag target (blue cube)
17+
#
18+
# To Do:
19+
# tmux new-session -d bash
20+
# tmux attach
421

522
FROM opencog/ros-indigo-dev
623
MAINTAINER Mandeep Singh Bhatia "[email protected]"
@@ -12,6 +29,9 @@ RUN apt-get -y install blender
1229
RUN apt-get -y install python3-yaml python3-pip
1330
RUN pip3 install rospkg catkin_pkg
1431

32+
RUN echo source /catkin_ws/devel/setup.bash >> /.bashrc && \
33+
echo -e "\e[1;34m[$SELF_NAME] catkin devel setup\.bash sourced\e[0m"
34+
1535
WORKDIR /catkin_ws/src
1636
RUN cp /opt/ros/indigo/setup.sh /etc/profile.d/ros_indigo.sh
1737
ENV PYTHONPATH /opt/ros/indigo/lib/python2.7/dist-packages
@@ -21,7 +41,6 @@ RUN git clone https://github.com/hansonrobotics/robo_blender
2141
RUN git clone https://github.com/yantrabuddhi/ros_pololu_servo
2242
RUN git clone https://github.com/yantrabuddhi/ros_nmpt_saliency
2343
RUN git clone https://github.com/yantrabuddhi/ros_faceshift
24-
RUN mkdir ros_faceshift/include
2544

2645
WORKDIR /catkin_ws
2746
RUN bash -l -c "/usr/bin/python3 /opt/ros/indigo/bin/catkin_make"

indigo/dev/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# docker build -t $USER/ros-indigo-dev .
1+
# docker build -t opencog/ros-indigo-dev .
22
# xhost +
3-
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t $USER/ros-indigo-dev /bin/bash
3+
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t opencog/ros-indigo-dev /bin/bash
44
# docker run -t -i --rm --privileged -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -v /home/mandeep/sharedFolder:/tmp/shared -v /dev/video0:/dev/video0 mandeep/ros-indigo-dev /bin/bash
55

66
FROM opencog/ros-indigo-deps

indigo/tracking/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# docker build -t $USER/ros-indigo-tracking .
1+
# docker build -t opencog/ros-indigo-tracking .
22
# xhost +
3-
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t $USER/ros-indigo-tracking /bin/bash
3+
# docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -i -t opencog/ros-indigo-tracking /bin/bash
44
# docker run -t -i --rm --privileged -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -v /home/mandeep/sharedFolder:/tmp/shared -v /dev/video0:/dev/video0 mandeep/ros-indigo-tracking /bin/bash
55

66
FROM opencog/ros-indigo-dev

0 commit comments

Comments
 (0)