Skip to content

Commit 3c68f43

Browse files
authored
Merge pull request #1108 from ROBOTIS-GIT/feature-picamera-launch
Allow dynamic image size via CLI
2 parents c9d9fed + 37c4a59 commit 3c68f43

File tree

9 files changed

+36
-14
lines changed

9 files changed

+36
-14
lines changed

turtlebot3/CHANGELOG.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
Changelog for package turtlebot3
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5-
2.3.1 (2025-05-28)
5+
2.3.1 (2025-05-30)
66
------------------
77
* Deprecate ament_include_dependency usage in CMakeLists.txt
8-
* Contributor: Hyungyu Kim
8+
* Added launch arguments to camera.launch.py file to configure the camera image resolution at runtime via the CLI
9+
* Contributor: Hyungyu Kim, YeonSoo Noh
910

1011
2.3.0 (2025-05-23)
1112
------------------
12-
* Added a launch file using camera_ros to reslove the camera cropping issue
13+
* Added a launch file using camera_ros to resolve the camera cropping issue
1314
* Contributor: YeonSoo Noh
1415

1516
2.2.9 (2025-04-15)

turtlebot3_bringup/CHANGELOG.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
Changelog for package turtlebot3_bringup
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5-
2.3.1 (2025-05-28)
5+
2.3.1 (2025-05-30)
66
------------------
7-
* None
7+
* Added launch arguments to camera.launch.py file to configure the camera image resolution at runtime via the CLI
8+
* Contributor: YeonSoo Noh
89

910
2.3.0 (2025-05-23)
1011
------------------
11-
* Added a launch file using camera_ros to reslove the camera cropping issue
12+
* Added a launch file using camera_ros to resolve the camera cropping issue
1213
* Contributor: YeonSoo Noh
1314

1415
2.2.9 (2025-04-15)

turtlebot3_bringup/launch/camera.launch.py

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,33 @@ def generate_launch_description() -> LaunchDescription:
6161
description='Whether to launch image_view (true/false)'
6262
)
6363

64+
width_name = 'width'
65+
width_default = '640'
66+
width_param = LaunchConfiguration(width_name)
67+
width_launch_arg = DeclareLaunchArgument(
68+
width_name,
69+
default_value=width_default,
70+
description='Camera image width'
71+
)
72+
73+
height_name = 'height'
74+
height_default = '480'
75+
height_param = LaunchConfiguration(height_name)
76+
height_launch_arg = DeclareLaunchArgument(
77+
height_name,
78+
default_value=height_default,
79+
description='Camera image height'
80+
)
81+
6482
composable_nodes = [
6583
ComposableNode(
6684
package='camera_ros',
6785
plugin='camera::CameraNode',
6886
parameters=[{
6987
'camera': camera_param,
7088
'sensor_mode': '1640:1232',
71-
'width': 320,
72-
'height': 240,
89+
'width': width_param,
90+
'height': height_param,
7391
'format': format_param,
7492
}],
7593
extra_arguments=[{'use_intra_process_comms': True}],
@@ -99,5 +117,7 @@ def generate_launch_description() -> LaunchDescription:
99117
camera_launch_arg,
100118
format_launch_arg,
101119
use_image_view_launch_arg,
120+
width_launch_arg,
121+
height_launch_arg,
102122
container,
103123
])

turtlebot3_cartographer/CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Changelog for package turtlebot3_cartographer
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5-
2.3.1 (2025-05-28)
5+
2.3.1 (2025-05-30)
66
------------------
77
* None
88

turtlebot3_description/CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Changelog for package turtlebot3_description
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5-
2.3.1 (2025-05-28)
5+
2.3.1 (2025-05-30)
66
------------------
77
* None
88

turtlebot3_example/CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Changelog for package turtlebot3_example
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5-
2.3.1 (2025-05-28)
5+
2.3.1 (2025-05-30)
66
------------------
77
* None
88

turtlebot3_navigation2/CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Changelog for package turtlebot3_navigation2
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5-
2.3.1 (2025-05-28)
5+
2.3.1 (2025-05-30)
66
------------------
77
* None
88

turtlebot3_node/CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Changelog for package turtlebot3_node
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5-
2.3.1 (2025-05-28)
5+
2.3.1 (2025-05-30)
66
------------------
77
* Deprecate ament_include_dependency usage in CMakeLists.txt
88
* Contributor: Hyungyu Kim

turtlebot3_teleop/CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Changelog for package turtlebot3_teleop
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5-
2.3.1 (2025-05-28)
5+
2.3.1 (2025-05-30)
66
------------------
77
* None
88

0 commit comments

Comments
 (0)