Skip to content

Commit

Permalink
slam 3d basic real hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonR99 committed Jun 10, 2024
1 parent 3a87ad0 commit d00598d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/rove_bringup/launch/autonomy.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.substitutions import LaunchConfiguration
from launch.conditions import IfCondition
from launch.conditions import IfCondition, UnlessCondition


def generate_launch_description():
Expand All @@ -29,7 +29,7 @@ def generate_launch_description():
pkg_rove_slam, "config", "slam_config.yaml"
)
}.items(),
condition=IfCondition(use_slam3d)
condition=UnlessCondition(use_slam3d)
)

slam3d = IncludeLaunchDescription(
Expand All @@ -53,7 +53,7 @@ def generate_launch_description():
)

return LaunchDescription([
#slam,
slam,
slam3d,
nav,
])
2 changes: 1 addition & 1 deletion src/rove_slam/launch/slam.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def generate_launch_description():
pkg_rove_slam = get_package_share_directory('rove_slam')

config_file = os.path.join(pkg_rove_slam, 'config',
'mapper_params_online_async.yaml')
'slam_config.yaml')

return LaunchDescription([
Node(
Expand Down
12 changes: 2 additions & 10 deletions src/rove_slam/launch/slam3d.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,15 @@ def generate_launch_description():
camera_model = 'zed2i'

lidar_frame_id = LaunchConfiguration('lidar_frame_id')

use_sim_time = LaunchConfiguration('use_sim_time')

deskewing = False

return LaunchDescription([


DeclareLaunchArgument(
'lidar_frame_id', default_value='velodyne_laser',
description='Lidar frame id'),

# Launch arguments
DeclareLaunchArgument(
'use_sim_time', default_value='true',
'use_sim_time', default_value='false',
description='Use simulation (Gazebo) clock if true'),

DeclareLaunchArgument(
Expand All @@ -32,7 +27,6 @@ def generate_launch_description():
Node(
package='rtabmap_odom', executable='icp_odometry', output='screen',
parameters=[{
'frame_id': lidar_frame_id, # 'livox_frame'
'odom_frame_id': 'odom',
'wait_for_transform': 0.2,
'expected_update_rate': 50.0,
Expand Down Expand Up @@ -73,7 +67,6 @@ def generate_launch_description():
Node(
package='rtabmap_slam', executable='rtabmap', output='screen',
parameters=[{
'frame_id': lidar_frame_id, # 'livox_frame'
'subscribe_depth': False,
'subscribe_rgb': False,
'subscribe_scan_cloud': True,
Expand Down Expand Up @@ -118,7 +111,6 @@ def generate_launch_description():
Node(
package='rtabmap_viz', executable='rtabmap_viz', output='screen',
parameters=[{
'frame_id': lidar_frame_id,
'odom_frame_id': 'odom',
'subscribe_odom_info': True,
'subscribe_scan_cloud': True,
Expand Down

0 comments on commit d00598d

Please sign in to comment.