-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (38 loc) · 2 KB
/
Dockerfile
File metadata and controls
55 lines (38 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Use the moveit/moveit:kinetic-source image as the base image
FROM moveit/moveit:kinetic-source
# Set the working directory in the container
WORKDIR /root/catkin_ws
# Clone the Kuka Experimental repository
RUN git clone https://github.com/ros-industrial/kuka_experimental.git src/kuka_experimental
# Install the controller_manager package
RUN apt-get update && apt-get install -y --allow-unauthenticated ros-kinetic-controller-manager
# Install the joint_limits_interface package
RUN apt-get update && apt-get install -y --allow-unauthenticated ros-kinetic-joint-limits-interface
# Install the realtime_tools package
RUN apt-get update && apt-get install -y --allow-unauthenticated ros-kinetic-realtime-tools
# Install terminator, python3-pip, rqt, and the listed ROS packages
RUN apt-get update && apt-get install -y --allow-unauthenticated terminator python3-pip ros-kinetic-desktop-full nautilus \
ros-kinetic-catkin \
ros-kinetic-industrial-robot-client \
ros-kinetic-joint-state-publisher \
ros-kinetic-robot-state-publisher \
ros-kinetic-rviz \
ros-kinetic-xacro
# Install terminator
RUN apt-get update && apt-get install -y terminator
# Install Xvfb
RUN apt-get update && apt-get install -y xvfb
# Install terminator
RUN apt-get update && apt-get install -y gedit
RUN apt-get update && apt-get install -y --allow-unauthenticated ros-kinetic-joint-state-publisher-gui
# Build the workspace
RUN /bin/bash -c '. /opt/ros/kinetic/setup.bash; cd ~/catkin_ws; catkin_make'
# Set the $DISPLAY environment variable to use Xvfb
ENV DISPLAY=:0
# Set the default command to run when the container starts
CMD ["/bin/bash", "-c", ". /opt/ros/kinetic/setup.bash; sleep 5; terminator"]
# Set the default command to run when the container starts
#CMD ["/bin/bash", "-c", ". /opt/ros/kinetic/setup.bash; roslaunch kuka_kr10_support test_kr10r900_2.launch"]
# CMD ["/bin/bash", "/home/libish/Desktop/Coderepos/kuka/launch.sh"]
# Define a volume for persistent data storage
VOLUME /home/libish/Desktop/Coderepos/kuka