2024-05-24 02:06:10 +08:00
|
|
|
from launch import LaunchDescription
|
|
|
|
from launch.actions import IncludeLaunchDescription
|
|
|
|
from launch.launch_description_sources import PythonLaunchDescriptionSource
|
|
|
|
from launch.substitutions import ThisLaunchFileDir
|
|
|
|
from launch_ros.actions import Node
|
|
|
|
|
|
|
|
|
|
|
|
def generate_launch_description():
|
|
|
|
return LaunchDescription([
|
|
|
|
Node(
|
2024-05-31 11:51:13 +08:00
|
|
|
name='d455',
|
|
|
|
namespace='go2',
|
2024-05-24 02:06:10 +08:00
|
|
|
package='realsense2_camera',
|
|
|
|
executable='realsense2_camera_node',
|
|
|
|
parameters=[{
|
2024-05-31 11:51:13 +08:00
|
|
|
'enable_infra1': False,
|
|
|
|
'enable_infra2': False,
|
2024-05-24 02:06:10 +08:00
|
|
|
'enable_color': True,
|
2024-05-31 11:51:13 +08:00
|
|
|
'enable_depth': True,
|
|
|
|
'depth_module.emitter_enabled': 1,
|
2024-05-31 12:40:53 +08:00
|
|
|
'rgb_camera.color_profile':'640x480x30',
|
|
|
|
'depth_module.depth_profile': '640x480x30',
|
2024-05-24 02:06:10 +08:00
|
|
|
'enable_gyro': True,
|
|
|
|
'enable_accel': True,
|
|
|
|
'gyro_fps': 400,
|
|
|
|
'accel_fps': 200,
|
|
|
|
'unite_imu_method': 2,
|
2024-05-31 11:51:13 +08:00
|
|
|
'pointcloud.enable': True
|
2024-05-24 02:06:10 +08:00
|
|
|
# 'tf_publish_rate': 0.0
|
|
|
|
}]
|
|
|
|
)
|
|
|
|
])
|