Skip to content

Commit 5ec29a6

Browse files
[update] Update 'pytorch_enet_ros'
1 parent e42868c commit 5ec29a6

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,10 @@ RUN echo ' else' >> ~/.bashrc
6060
RUN echo ' export ROS_IP=$TARGET_IP' >> ~/.bashrc
6161
RUN echo ' fi' >> ~/.bashrc
6262

63+
RUN apt update && \
64+
apt install -y ros-melodic-geometry2 \
65+
&& apt-get clean \
66+
&& rm -rf /var/lib/apt/lists/*rm
67+
68+
6369
ENTRYPOINT ["/ros_entrypoint.sh"]

docker-compose.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
- ./PyTorch-ENet:/root/PyTorch-ENet
2929

3030
master:
31-
container_name: pytorch-ros-master
31+
container_name: master
3232
image: ros:kinetic-ros-core
3333
command: roscore
3434
environment:
@@ -42,9 +42,9 @@ services:
4242
build: .
4343
runtime: nvidia
4444
image: aisl/pytorch-enet:20.03-py3
45-
command: roslaunch pytorch_enet_ros pytorch_enet_ros.launch
45+
command: roslaunch pytorch_enet_ros pytorch_enet_ros.launch image:=/kinect2/qhd/image_color_rect
4646
environment:
47-
- ROS_MASTER_URI=http://pytorch-ros-master:11311
47+
- ROS_MASTER_URI=http://master:11311
4848
# - ROS_IP=172.24.0.3
4949
volumes:
5050
- ./catkin_ws/:/root/catkin_ws/
@@ -67,18 +67,3 @@ services:
6767
# - /media/data/dataset/matsuzaki:/tmp/dataset
6868
tty: true
6969
shm_size: 1G
70-
71-
rviz:
72-
container_name: pytorch-ros-rviz
73-
depends_on:
74-
- master
75-
image: osrf/ros:kinetic-desktop-full
76-
command: rviz
77-
environment:
78-
- ROS_MASTER_URI=http://pytorch-ros-master:11311
79-
- DISPLAY
80-
- QT_X11_NO_MITSHM=1
81-
volumes:
82-
- $HOME/.Xauthority:/root/.Xauthority
83-
- /tmp/.X11-unix:/tmp/.X11-unix:rw
84-
tty: true

0 commit comments

Comments
 (0)