2024-02-12 09:43:59 +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([
|
|
|
|
# launch the pointcloud to laser scan converter
|
|
|
|
Node(
|
|
|
|
package='hesai_ros_driver',
|
|
|
|
executable='hesai_ros_driver_node',
|
|
|
|
name='go2_hesai_ros_driver_node'
|
|
|
|
),
|
2024-02-13 02:51:30 +08:00
|
|
|
Node(
|
|
|
|
name='go2_cam',
|
|
|
|
namespace='go2/cam',
|
|
|
|
package='realsense2_camera',
|
|
|
|
executable='realsense2_camera_node',
|
|
|
|
parameters=[{
|
|
|
|
'enable_infra1': True,
|
|
|
|
'enable_infra2': True,
|
|
|
|
'enable_color': False,
|
|
|
|
'enable_depth': False,
|
|
|
|
'depth_module.emitter_enabled': 0,
|
|
|
|
'depth_module.profile': '640x480x60',
|
|
|
|
'enable_gyro': True,
|
|
|
|
'enable_accel': True,
|
|
|
|
'gyro_fps': 400,
|
|
|
|
'accel_fps': 200,
|
|
|
|
'unite_imu_method': 2,
|
|
|
|
# 'tf_publish_rate': 0.0
|
|
|
|
}]
|
|
|
|
)
|
2024-02-12 09:43:59 +08:00
|
|
|
])
|