Skip to content

Commit 0bb5293

Browse files
committed
refactor perception and integrate costmap, planner, and control modules
1 parent 26eebbc commit 0bb5293

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+4503
-773
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ __pycache__
66
watod-config.local.sh
77
**/.DS_Store
88
draft_*
9+
*copy*
10+
camera-info.txt
11+
src/gazebo/launch/MR24-DT-A00.00 - URDF/

docker/gazebo/gazeboserver.Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM ${BASE_IMAGE} AS source
55

66
WORKDIR ${AMENT_WS}/src
77

8-
# Copy in source code
8+
# Copy in source code
99
COPY src/gazebo gazebo
1010

1111
RUN apt-get update && apt-get install -y --no-install-recommends curl \
@@ -15,10 +15,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends curl \
1515
# Scan for rosdeps
1616
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
1717
RUN apt-get -qq update && rosdep update && \
18-
(rosdep install --from-paths . --ignore-src -r -s \
19-
| grep 'apt-get install' \
18+
(rosdep install --from-paths . --ignore-src -r -s || true) \
19+
| (grep 'apt-get install' || true) \
2020
| awk '{print $3}' \
21-
| sort > /tmp/colcon_install_list || echo "# No additional dependencies needed" > /tmp/colcon_install_list)
21+
| sort > /tmp/colcon_install_list
2222

2323
################################# Dependencies ################################
2424
FROM ${BASE_IMAGE} AS dependencies
@@ -63,7 +63,7 @@ RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" && \
6363
colcon build \
6464
--cmake-args -DCMAKE_BUILD_TYPE=Release --install-base "${WATONOMOUS_INSTALL}"
6565

66-
# Source and Build Artifact Cleanup
66+
# Source and Build Artifact Cleanup
6767
RUN rm -rf src/* build/* devel/* install/* log/*
6868

6969
# Entrypoint will run before any CMD on launch. Sources ~/opt/<ROS_DISTRO>/setup.bash and ~/ament_ws/install/setup.bash

docker/robot/robot.Dockerfile

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,24 @@ RUN apt-get update && apt-get install -y --no-install-recommends curl \
99
&& curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12-
# Copy in source code
13-
COPY src/robot/yolo_inference ./yolo_inference
14-
COPY src/robot/object_detection object_detection
12+
# Copy in source code
1513
COPY src/robot/odometry_spoof odometry_spoof
14+
COPY src/robot/gps_sim gps_sim
15+
COPY src/robot/imu_sim imu_sim
16+
COPY src/robot/localization localization
17+
COPY src/robot/costmap costmap
18+
COPY src/robot/map_memory map_memory
19+
COPY src/robot/planner planner
20+
COPY src/robot/control control
1621
COPY src/robot/bringup_robot bringup_robot
17-
COPY src/robot/camera_fallback camera_fallback
18-
COPY src/robot/arcade_driver arcade_driver
19-
COPY src/robot/motor_speed_controller motor_speed_controller
20-
COPY src/wato_msgs/drivetrain_msgs drivetrain_msgs
2122

2223
# Scan for rosdeps
2324
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2425
RUN apt-get -qq update && rosdep update && \
25-
(rosdep install --from-paths . --ignore-src -r -s \
26-
| grep 'apt-get install' \
27-
| awk '{print $3}' \
28-
| sort > /tmp/colcon_install_list || echo "# No additional dependencies needed" > /tmp/colcon_install_list)
26+
(rosdep install --from-paths . --ignore-src -r -s || true) \
27+
| (grep 'apt-get install' || true) \
28+
| awk '{print $3}' \
29+
| sort > /tmp/colcon_install_list || echo "# No additional dependencies needed" > /tmp/colcon_install_list
2930

3031
################################# Dependencies ################################
3132
FROM ${BASE_IMAGE} AS dependencies
@@ -50,8 +51,8 @@ RUN apt-get -qq update && \
5051
rm -rf /var/lib/apt/lists/*
5152

5253
# Copy in source code from source stage
53-
WORKDIR ${AMENT_WS}/src
54-
COPY src/robot/object_detection object_detection
54+
# WORKDIR ${AMENT_WS}/src
55+
# COPY src/robot/object_detection object_detection
5556
WORKDIR ${AMENT_WS}
5657
COPY --from=source ${AMENT_WS}/src src
5758

@@ -89,7 +90,7 @@ RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" && \
8990
colcon build \
9091
--cmake-args -DCMAKE_BUILD_TYPE=Release --install-base "${WATONOMOUS_INSTALL}"
9192

92-
# Source and Build Artifact Cleanup
93+
# Source and Build Artifact Cleanup
9394
RUN rm -rf src/* build/* devel/* install/* log/*
9495

9596
# Entrypoint will run before any CMD on launch. Sources ~/opt/<ROS_DISTRO>/setup.bash and ~/ament_ws/install/setup.bash

docker/vis_tools/foxglove.Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM ${BASE_IMAGE} AS source
55

66
WORKDIR ${AMENT_WS}/src
77

8-
# Copy in source code
8+
# Copy in source code
99
COPY src/wato_msgs wato_msgs
1010

1111
RUN apt-get update && apt-get install -y --no-install-recommends curl \
@@ -15,10 +15,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends curl \
1515
# Scan for rosdeps
1616
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
1717
RUN apt-get -qq update && rosdep update && \
18-
(rosdep install --from-paths . --ignore-src -r -s \
19-
| grep 'apt-get install' \
18+
(rosdep install --from-paths . --ignore-src -r -s || true) \
19+
| (grep 'apt-get install' || true) \
2020
| awk '{print $3}' \
21-
| sort > /tmp/colcon_install_list || echo "# No additional dependencies needed" > /tmp/colcon_install_list)
21+
| sort > /tmp/colcon_install_list
2222

2323
################################# Dependencies ################################
2424
FROM ${BASE_IMAGE} AS dependencies
@@ -36,7 +36,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends lsb-release sof
3636
apt-add-repository universe && \
3737
rm -rf /var/lib/apt/lists/*
3838

39-
# Install Dependencies
4039
# Install Dependencies
4140
RUN apt-get update && \
4241
apt-get install -y --no-install-recommends \
@@ -70,7 +69,7 @@ RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" && \
7069
colcon build \
7170
--cmake-args -DCMAKE_BUILD_TYPE=Release --install-base "${WATONOMOUS_INSTALL}"
7271

73-
# Source and Build Artifact Cleanup
72+
# Source and Build Artifact Cleanup
7473
RUN rm -rf src/* build/* devel/* install/* log/*
7574

7675
# Entrypoint will run before any CMD on launch. Sources ~/opt/<ROS_DISTRO>/setup.bash and ~/ament_ws/install/setup.bash

modules/docker-compose.robot.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
services:
2-
robot:
2+
robot:
33
build: &robot_build
44
context: ..
55
dockerfile: docker/robot/robot.Dockerfile
@@ -12,12 +12,7 @@ services:
1212
profiles:
1313
- deploy
1414
command: /bin/bash -c "ros2 launch bringup_robot robot.launch.py"
15-
devices:
16-
- /dev/bus/usb:/dev/bus/usb
17-
volumes:
18-
- /dev:/dev
19-
privileged: true
20-
15+
2116
robot_dev:
2217
build: *robot_build
2318
image: "${ROBOT_IMAGE:?}:dev_${TAG}"
@@ -26,7 +21,3 @@ services:
2621
- develop
2722
volumes:
2823
- ${MONO_DIR}/src/robot:/root/ament_ws/src
29-
- /dev:/dev
30-
devices:
31-
- /dev/bus/usb:/dev/bus/usb
32-
privileged: true

0 commit comments

Comments
 (0)