Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Commit fcdf4a6

Browse files
remove reference to ompl planner and servo planner
1 parent 5f3da4b commit fcdf4a6

69 files changed

Lines changed: 929 additions & 2967 deletions

File tree

Some content is hidden

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

Dockerfile

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,129 @@ WORKDIR $USER_WS
124124

125125
# Set up the user's .bashrc file and shell.
126126
CMD ["/usr/bin/bash"]
127+
128+
##################################################
129+
# Starting from the specified MoveIt Pro release with CUDA GPU #
130+
##################################################
131+
# The image tag is specified in the argument itself.
132+
# hadolint ignore=DL3006
133+
FROM ${MOVEIT_STUDIO_BASE_IMAGE} AS base-gpu
134+
135+
# Create a non-root user
136+
ARG USERNAME
137+
ARG USER_UID
138+
ARG USER_GID
139+
140+
# hadolint ignore=DL3008
141+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
142+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
143+
apt-get update && apt-get install wget -y -q --no-install-recommends && \
144+
wget --progress=dot:giga https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb && \
145+
dpkg -i cuda-keyring_1.1-1_all.deb && \
146+
apt-get update && \
147+
apt-get install -q -y --no-install-recommends \
148+
libcudnn9-cuda-12 \
149+
libcudnn9-dev-cuda-12 \
150+
libcublas-12-6 \
151+
cuda-cudart-12-6 \
152+
libcurand-12-6 \
153+
libcufft-12-6 \
154+
libnvinfer10 \
155+
libnvinfer-plugin10 \
156+
libnvonnxparsers10 \
157+
libtree
158+
159+
# Misleading name: onnxruntime_gpu is actually specifically the CUDA package. This is only shipped for x86-64
160+
RUN if [ "$(uname -m)" = "x86_64" ]; then pip3 install --no-cache-dir onnxruntime_gpu==1.19.0; fi
161+
162+
# Copy source code from the workspace's ROS 2 packages to a workspace inside the container
163+
ARG USER_WS=/home/${USERNAME}/user_ws
164+
ENV USER_WS=${USER_WS}
165+
166+
# Also mkdir with user permission directories which will be mounted later to avoid docker creating them as root
167+
WORKDIR $USER_WS
168+
# hadolint ignore=DL3008
169+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
170+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
171+
groupadd --gid $USER_GID ${USERNAME} && \
172+
useradd --uid $USER_UID --gid $USER_GID --shell /bin/bash --create-home ${USERNAME} && \
173+
apt-get update && \
174+
apt-get install -q -y --no-install-recommends sudo && \
175+
echo ${USERNAME} ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/${USERNAME} && \
176+
chmod 0440 /etc/sudoers.d/${USERNAME} && \
177+
cp -r /etc/skel/. /home/${USERNAME} && \
178+
mkdir -p \
179+
/home/${USERNAME}/.ccache \
180+
/home/${USERNAME}/.config \
181+
/home/${USERNAME}/.ignition \
182+
/home/${USERNAME}/.colcon \
183+
/home/${USERNAME}/.ros && \
184+
chown -R $USER_UID:$USER_GID /home/${USERNAME} /opt/overlay_ws/
185+
186+
# Install additional dependencies
187+
# You can also add any necessary apt-get install, pip install, etc. commands at this point.
188+
# NOTE: The /opt/overlay_ws folder contains MoveIt Pro binary packages and the source file.
189+
# hadolint ignore=SC1091
190+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
191+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
192+
--mount=type=bind,target=${USER_WS}/,source=. \
193+
. /opt/overlay_ws/install/setup.sh && \
194+
apt-get update && \
195+
rosdep install -q -y \
196+
--from-paths src \
197+
--ignore-src
198+
199+
# Set up colcon defaults for the new user
200+
USER ${USERNAME}
201+
RUN colcon mixin add default \
202+
https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml && \
203+
colcon mixin update && \
204+
colcon metadata add default \
205+
https://raw.githubusercontent.com/colcon/colcon-metadata-repository/master/index.yaml && \
206+
colcon metadata update
207+
COPY colcon-defaults.yaml /home/${USERNAME}/.colcon/defaults.yaml
208+
209+
# hadolint ignore=DL3002
210+
USER root
211+
212+
# Set up the user's .bashrc file and shell.
213+
CMD ["/usr/bin/bash"]
214+
215+
###################################################################
216+
# Target for the developer build which does not compile any code. #
217+
###################################################################
218+
FROM base-gpu AS user-overlay-gpu-dev
219+
220+
ARG USERNAME
221+
ARG USER_WS=/home/${USERNAME}/user_ws
222+
ENV USER_WS=${USER_WS}
223+
224+
# Install any additional packages for development work
225+
# hadolint ignore=DL3008
226+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
227+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
228+
apt-get update && \
229+
apt-get install -y --no-install-recommends \
230+
less \
231+
gdb \
232+
nano
233+
234+
# Set up the user's .bashrc file and shell.
235+
CMD ["/usr/bin/bash"]
236+
237+
#########################################
238+
# Target for compiled, deployable image with GPU support #
239+
#########################################
240+
FROM base-gpu AS user-overlay-gpu
241+
242+
ARG USERNAME
243+
ARG USER_WS=/home/${USERNAME}/user_ws
244+
ENV USER_WS=${USER_WS}
245+
246+
ENV LD_LIBRARY_PATH=/usr/local/lib/python3.10/dist-packages/onnxruntime/capi:/usr/lib/x86_64-linux-gnu:/usr/local/cuda-12.6/targets/x86_64-linux/lib:$LD_LIBRARY_PATH
247+
248+
# Compile the workspace
249+
WORKDIR $USER_WS
250+
251+
# Set up the user's .bashrc file and shell.
252+
CMD ["/usr/bin/bash"]

src/.gitkeep

Whitespace-only changes.

src/factory_sim/config/config.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,15 @@ moveit_params:
5959
# Used by the Waypoint Manager to save joint states from this joint group.
6060
joint_group_name: "manipulator"
6161

62-
ompl_planning:
63-
package: "factory_sim"
64-
path: "config/moveit/ompl_planning.yaml"
6562
stomp_planning:
6663
package: "factory_sim"
6764
path: "config/moveit/stomp_planning.yaml"
6865
kinematics:
6966
package: "factory_sim"
7067
path: "config/moveit/pose_ik_distance.yaml"
71-
servo:
72-
package: "factory_sim"
73-
path: "config/moveit/servo.yaml"
7468
joint_limits:
7569
package: "factory_sim"
7670
path: "config/moveit/joint_limits.yaml"
77-
servo_joint_limits:
78-
package: "factory_sim"
79-
path: "config/moveit/joint_limits.yaml"
8071
pose_jog:
8172
package: "factory_sim"
8273
path: "config/moveit/pose_jog.yaml"
@@ -113,7 +104,6 @@ ros2_control:
113104
# Load but do not start these controllers so they can be activated later if needed.
114105
# [Optional, default=[]]
115106
controllers_inactive_at_startup:
116-
- "servo_controller"
117107
- "velocity_force_controller"
118108
- "joint_velocity_controller"
119109
# Any controllers here will not be spawned by MoveIt Pro.

src/factory_sim/config/control/picknik_fanuc.ros2_control.yaml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ controller_manager:
55
type: joint_state_broadcaster/JointStateBroadcaster
66
joint_trajectory_controller:
77
type: joint_trajectory_controller/JointTrajectoryController
8-
servo_controller:
9-
type: joint_trajectory_controller/JointTrajectoryController
108
# A controller to enable/disable the tool attachment interface at the robot flange.
119
# In sim, this is modeled as a weld constraint in Mujoco.
1210
# In a real robot, this controller would activate a mechanism to attach/detach the tool at the robot flange.
@@ -65,46 +63,6 @@ joint_trajectory_controller:
6563
- position
6664
- velocity
6765

68-
servo_controller:
69-
ros__parameters:
70-
joints:
71-
- joint_1
72-
- joint_2
73-
- joint_3
74-
- joint_4
75-
- joint_5
76-
- joint_6
77-
command_interfaces:
78-
- position
79-
state_interfaces:
80-
- position
81-
- velocity
82-
command_joints:
83-
- joint_1
84-
- joint_2
85-
- joint_3
86-
- joint_4
87-
- joint_5
88-
- joint_6
89-
state_publish_rate: 100.0
90-
action_monitor_rate: 20.0
91-
allow_partial_joints_goal: false
92-
constraints:
93-
stopped_velocity_tolerance: 0.0
94-
goal_time: 0.0
95-
joint_1:
96-
goal: 0.05
97-
joint_2:
98-
goal: 0.05
99-
joint_3:
100-
goal: 0.05
101-
joint_4:
102-
goal: 0.05
103-
joint_5:
104-
goal: 0.05
105-
joint_6:
106-
goal: 0.05
107-
10866
velocity_force_controller:
10967
ros__parameters:
11068
# Joint group to control.

src/factory_sim/config/moveit/ompl_planning.yaml

Lines changed: 0 additions & 106 deletions
This file was deleted.

src/factory_sim/config/moveit/servo.yaml

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)