Skip to content

Commit

Permalink
Update sensor config to carla 0.9.10.1 (#18)
Browse files Browse the repository at this point in the history
* update sensor config to carla 0.9.10.1

* update docker
  • Loading branch information
hofbi authored Jan 20, 2021
1 parent e2209f3 commit 8eeb6c2
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 28 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
context: ./
dockerfile: docker/Dockerfile
image: telecarla
ports:
- '2000:2002'
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
environment:
DISPLAY: $DISPLAY
command: bash
8 changes: 8 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM ros:melodic-robot

ARG CARLA_MAJOR_VERSION='0.9.10'
ARG CARLA_MINOR_VERSION='1'

ENV DEBIAN_FRONTEND='noninteractive'
ENV QT_X11_NO_MITSHM=1

Expand All @@ -8,6 +11,7 @@ RUN apt-get update && \
python-catkin-tools \
x11-apps \
socat \
wget \
ubuntu-server \
ubuntu-desktop && \
rm -rf /var/lib/apt/lists/*
Expand All @@ -17,6 +21,10 @@ WORKDIR /home/catkin_ws/src/telecarla
RUN ./install.sh

WORKDIR /home/catkin_ws
RUN wget https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/CARLA_${CARLA_MAJOR_VERSION}.${CARLA_MINOR_VERSION}.tar.gz && \
mkdir -p carla && tar xzf CARLA_${CARLA_MAJOR_VERSION}.${CARLA_MINOR_VERSION}.tar.gz -C carla && \
python -m easy_install --no-deps carla/PythonAPI/carla/dist/carla-${CARLA_MAJOR_VERSION}-py2.7-linux-x86_64.egg && \
rm -rf carla CARLA_${CARLA_MAJOR_VERSION}.${CARLA_MINOR_VERSION}.tar.gz
RUN bash -c "source /opt/ros/melodic/setup.bash && source /opt/carla-ros-bridge/melodic/setup.bash && catkin init && catkin build"

ENTRYPOINT [ "src/telecarla/docker/entrypoint.sh" ]
24 changes: 12 additions & 12 deletions telecarla_manual_control/config/multi_sensors.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": 0.0,
"width": 640,
"height": 480,
"image_size_x": 640,
"image_size_y": 480,
"fov": 90.0,
"sensor_tick": 0.05,
"gamma": 2.2,
Expand Down Expand Up @@ -60,8 +60,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": -45.0,
"width": 640,
"height": 480,
"image_size_x": 640,
"image_size_y": 480,
"fov": 90.0,
"sensor_tick": 0.05,
"gamma": 2.2,
Expand Down Expand Up @@ -111,8 +111,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": 45.0,
"width": 640,
"height": 480,
"image_size_x": 640,
"image_size_y": 480,
"fov": 90.0,
"sensor_tick": 0.05,
"gamma": 2.2,
Expand Down Expand Up @@ -162,8 +162,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": 180.0,
"width": 640,
"height": 480,
"image_size_x": 640,
"image_size_y": 480,
"fov": 90.0,
"sensor_tick": 0.05,
"gamma": 2.2,
Expand Down Expand Up @@ -213,8 +213,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": -160.0,
"width": 640,
"height": 480,
"image_size_x": 640,
"image_size_y": 480,
"fov": 90.0,
"sensor_tick": 0.05,
"gamma": 2.2,
Expand Down Expand Up @@ -264,8 +264,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": 160.0,
"width": 640,
"height": 480,
"image_size_x": 640,
"image_size_y": 480,
"fov": 90.0,
"sensor_tick": 0.05,
"gamma": 2.2,
Expand Down
24 changes: 12 additions & 12 deletions telecarla_manual_control/config/multi_sensors_bmw.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": 0.0,
"width": 1200,
"height": 600,
"image_size_x": 1200,
"image_size_y": 600,
"fov": 150,
"fov": 90.0,
"sensor_tick": 0.05,
Expand Down Expand Up @@ -61,8 +61,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": -45.0,
"width": 800,
"height": 600,
"image_size_x": 800,
"image_size_y": 600,
"fov": 100,
"fov": 90.0,
"sensor_tick": 0.05,
Expand Down Expand Up @@ -113,8 +113,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": 45.0,
"width": 800,
"height": 600,
"image_size_x": 800,
"image_size_y": 600,
"fov": 100,
"fov": 90.0,
"sensor_tick": 0.05,
Expand Down Expand Up @@ -165,8 +165,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": 180.0,
"width": 750,
"height": 600,
"image_size_x": 750,
"image_size_y": 600,
"fov": 52,
"fov": 90.0,
"sensor_tick": 0.05,
Expand Down Expand Up @@ -217,8 +217,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": -160.0,
"width": 800,
"height": 600,
"image_size_x": 800,
"image_size_y": 600,
"fov": 100,
"fov": 90.0,
"sensor_tick": 0.05,
Expand Down Expand Up @@ -269,8 +269,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": 160.0,
"width": 800,
"height": 600,
"image_size_x": 800,
"image_size_y": 600,
"fov": 100,
"fov": 90.0,
"sensor_tick": 0.05,
Expand Down
4 changes: 2 additions & 2 deletions telecarla_manual_control/config/single_sensors.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"roll": 0.0,
"pitch": 0.0,
"yaw": 0.0,
"width": 1280,
"height": 720,
"image_size_x": 1280,
"image_size_y": 720,
"fov": 90.0,
"sensor_tick": 0.05,
"gamma": 2.2,
Expand Down

0 comments on commit 8eeb6c2

Please sign in to comment.