diff --git a/Dockerfile b/Dockerfile index 4430957c017596881ca541ec4ebe8dff92ea1a13..a85b62bf53250cf024635f70bb7d872be1db5915 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,11 +5,11 @@ RUN apt-get install -y \ ros-melodic-libfranka python-catkin-tools libeigen3-dev #WORKDIR /src/ COPY ./vnc/simple_simulation.sh /root/Desktop/ -RUN chmod a+x /root/Desktop/simple_simulation.sh +RUN ln -s /usr/share/applications/lxterminal.desktop /root/Desktop/lxterminal.desktop +RUN chmod a+x /root/Desktop/simple_simulation.sh && mkdir /root/Desktop/ros_ws ENV ROS_DISTRO=melodic -WORKDIR /home/ubuntu/ros_ws -RUN rm build devel src -rf -COPY ./src /home/ubuntu/ros_ws/src +WORKDIR /root/Desktop/ros_ws +COPY ./src /root/Desktop/ros_ws/src RUN apt-get update && rosdep install --from-paths . -r -y && apt-get clean RUN catkin config \ --extend /opt/ros/melodic && \ diff --git a/vnc/simple_simulation.sh b/vnc/simple_simulation.sh index f51f750947104eb9f83d47ce67f454b153e062e8..ad546427b4118d57a0207879d7a79a403da54f2a 100644 --- a/vnc/simple_simulation.sh +++ b/vnc/simple_simulation.sh @@ -1,4 +1,4 @@ #!/bin/bash -source ~/ros_ws/devel/setup.bash -roslaunch sample_applications simple_simulation.launch \ No newline at end of file +source /root/Desktop/ros_ws/devel/setup.bash +lxterminal --command "roslaunch sample_applications simple_simulation.launch" \ No newline at end of file