Skip to content

Commit 712299e

Browse files
authored
Merge pull request #335 from ROBOTIS-GIT/feature-develop
Correct offset parameter order in joint_trajectory_command_broadcaster and changed packing positions
2 parents 8288056 + 0ad509c commit 712299e

File tree

30 files changed

+147
-368
lines changed

30 files changed

+147
-368
lines changed

docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN mkdir -p ${COLCON_WS}/src && \
3636
RUN cd ${COLCON_WS} && \
3737
apt-get update && \
3838
rosdep update && \
39-
rosdep install -i --from-path src --rosdistro $ROS_DISTRO --skip-keys="librealsense2 dynamixel_hardware_interface dynamixel_interfaces dynamixel_sdk open_manipulator" -y && \
39+
rosdep install -i --from-path src --rosdistro $ROS_DISTRO --skip-keys="librealsense2" -y && \
4040
rm -rf /var/lib/apt/lists/*
4141

4242
RUN bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash && \
@@ -45,6 +45,7 @@ RUN bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash && \
4545

4646
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc && \
4747
echo "source ${COLCON_WS}/install/setup.bash" >> ~/.bashrc && \
48-
echo "alias cb='colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release'" >> ~/.bashrc
48+
echo "alias cb='colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release'" >> ~/.bashrc && \
49+
echo "export ROS_DOMAIN_ID=30" >> ~/.bashrc
4950

5051
CMD ["bash"]

open_manipulator/CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Changelog for package open_manipulator
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
4.0.7 (2025-07-17)
6+
------------------
7+
* Fixed joint offset functionality of joint trajectory command broadcaster
8+
* Updated launch files for OMY Packing and Unpacking
9+
* Contributors: Woojin Wie
10+
511
4.0.6 (2025-07-15)
612
------------------
713
* Renamed omx to open_manipulator_x

open_manipulator/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>open_manipulator</name>
5-
<version>4.0.6</version>
5+
<version>4.0.7</version>
66
<description>
77
OpenMANIPULATOR meta ROS 2 package.
88
</description>

open_manipulator_bringup/CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog for package open_manipulator_bringup
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
4.0.7 (2025-07-17)
6+
------------------
7+
* Updated launch files for OMY Packing and Unpacking
8+
* Contributors: Woojin Wie
9+
510
4.0.6 (2025-07-15)
611
------------------
712
* Renamed omx to open_manipulator_x
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
joint_trajectory_executor:
2+
ros__parameters:
3+
joint_names:
4+
- joint1
5+
- joint2
6+
- joint3
7+
- joint4
8+
- joint5
9+
- joint6
10+
11+
step_names: [home, pack] # Names of the steps
12+
13+
home: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0] # Initial position
14+
pack: [0.0, 0.0, -2.61799, -0.52360, 0.0, 0.0] # Pack position
15+
16+
duration: 10.0
17+
epsilon: 0.01
18+
action_topic: '/arm_controller/follow_joint_trajectory'
19+
joint_states_topic: '/joint_states'

open_manipulator_bringup/launch/omy_3m_pack.launch.py

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,47 +16,32 @@
1616
#
1717
# Author: Sungho Woo, Woojin Wie
1818

19+
import os
20+
21+
from ament_index_python.packages import get_package_share_directory
1922
from launch import LaunchDescription
20-
from launch.actions import ExecuteProcess
23+
from launch.actions import IncludeLaunchDescription
2124
from launch.actions import LogInfo
22-
from launch.actions import RegisterEventHandler
23-
from launch.event_handlers import OnProcessStart
24-
from launch_ros.actions import Node
25+
from launch.launch_description_sources import PythonLaunchDescriptionSource
2526

2627

2728
def generate_launch_description():
28-
# Step 1: Start follower launch file
29-
start_y = ExecuteProcess(
30-
cmd=[
31-
'ros2',
32-
'launch',
33-
'open_manipulator_bringup',
34-
'omy_3m.launch.py',
35-
],
36-
output='screen',
37-
)
29+
# Get the package share directory
30+
pkg_share = get_package_share_directory('open_manipulator_bringup')
31+
32+
# Path to the omy_3m.launch.py file
33+
omy_3m_launch_file = os.path.join(pkg_share, 'launch', 'omy_3m.launch.py')
3834

39-
# Step 2: Run the initialization script for the follower with pack mode
40-
omy_3m_pack = Node(
41-
package='open_manipulator_bringup',
42-
executable='pack_unpack_3m',
43-
output='screen',
44-
parameters=[{'operation_mode': 'pack'}],
35+
# Include the omy_3m.launch.py with pack parameters
36+
omy_3m_launch = IncludeLaunchDescription(
37+
PythonLaunchDescriptionSource([omy_3m_launch_file]),
38+
launch_arguments={
39+
'init_position': 'true',
40+
'init_position_file': 'pack_positions.yaml'
41+
}.items()
4542
)
4643

4744
return LaunchDescription([
48-
LogInfo(msg='🚀 Starting omy_3m.launch.py...'),
49-
start_y,
50-
RegisterEventHandler(
51-
OnProcessStart(
52-
target_action=start_y,
53-
on_start=[
54-
LogInfo(
55-
msg='✅ omy_3m.launch.py has fully started.'
56-
'Start to pack...'
57-
),
58-
omy_3m_pack,
59-
],
60-
)
61-
),
45+
LogInfo(msg='Starting OMY packing...'),
46+
omy_3m_launch,
6247
])

open_manipulator_bringup/launch/omy_3m_unpack.launch.py

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,47 +16,32 @@
1616
#
1717
# Author: Sungho Woo, Woojin Wie
1818

19+
import os
20+
21+
from ament_index_python.packages import get_package_share_directory
1922
from launch import LaunchDescription
20-
from launch.actions import ExecuteProcess
23+
from launch.actions import IncludeLaunchDescription
2124
from launch.actions import LogInfo
22-
from launch.actions import RegisterEventHandler
23-
from launch.event_handlers import OnProcessStart
24-
from launch_ros.actions import Node
25+
from launch.launch_description_sources import PythonLaunchDescriptionSource
2526

2627

2728
def generate_launch_description():
28-
# Step 1: Start follower launch file
29-
start_y = ExecuteProcess(
30-
cmd=[
31-
'ros2',
32-
'launch',
33-
'open_manipulator_bringup',
34-
'omy_3m.launch.py',
35-
],
36-
output='screen',
37-
)
29+
# Get the package share directory
30+
pkg_share = get_package_share_directory('open_manipulator_bringup')
31+
32+
# Path to the omy_3m.launch.py file
33+
omy_3m_launch_file = os.path.join(pkg_share, 'launch', 'omy_3m.launch.py')
3834

39-
# Step 2: Run the initialization script for the follower with unpack mode
40-
omy_3m_unpack = Node(
41-
package='open_manipulator_bringup',
42-
executable='pack_unpack_3m',
43-
output='screen',
44-
parameters=[{'operation_mode': 'unpack'}],
35+
# Include the omy_3m.launch.py with pack parameters
36+
omy_3m_launch = IncludeLaunchDescription(
37+
PythonLaunchDescriptionSource([omy_3m_launch_file]),
38+
launch_arguments={
39+
'init_position': 'true',
40+
'init_position_file': 'initial_positions.yaml'
41+
}.items()
4542
)
4643

4744
return LaunchDescription([
48-
LogInfo(msg='🚀 Starting omy_3m.launch.py...'),
49-
start_y,
50-
RegisterEventHandler(
51-
OnProcessStart(
52-
target_action=start_y,
53-
on_start=[
54-
LogInfo(
55-
msg='✅ omy_3m.launch.py has fully started.'
56-
'Start to unpack...'
57-
),
58-
omy_3m_unpack,
59-
],
60-
)
61-
),
45+
LogInfo(msg='Starting OMY unpacking...'),
46+
omy_3m_launch,
6247
])

0 commit comments

Comments
 (0)