Skip to content

Commit

Permalink
fixed some bugs with rviz
Browse files Browse the repository at this point in the history
  • Loading branch information
IanLalonde committed Nov 22, 2024
1 parent c09f872 commit 1627a7d
Show file tree
Hide file tree
Showing 5 changed files with 432 additions and 21 deletions.
16 changes: 15 additions & 1 deletion racecar_bringup/launch/bringup.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ def generate_launch_description():

return LaunchDescription([


# Robot state publisher
Node(
package='robot_state_publisher',
executable='robot_state_publisher',
name='robot_state_publisher',
output='both',
parameters=[robot_description],
),

TimerAction(
period=5.0,
actions=[
Expand Down Expand Up @@ -49,7 +59,7 @@ def generate_launch_description():
parameters=[{
'serial_port': '/dev/ttyUSB0',
'serial_baudrate': 115200,
'frame_id': 'laser',
'frame_id': 'racecar/base_laser',
'inverted': False,
'angle_compensate': True,
}],
Expand All @@ -60,6 +70,10 @@ def generate_launch_description():
package='v4l2_camera',
executable='v4l2_camera_node',
name='camera',
parameters=[{
'frame_id' : 'racecar/camera_optical_link',
'saturation' : 100,
}],
remappings=[('image_raw', 'racecar/camera'),
('camera_info', 'racecar/camera_info')],
),
Expand Down
14 changes: 7 additions & 7 deletions racecar_bringup/launch/include/robot_localization.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ def generate_launch_description():
),


Node(
package='robot_localization',
executable='ekf_node',
name='ekf_filter_node',
output='screen',
parameters=[os.path.join(get_package_share_directory("racecar_bringup"), 'launch', 'include', 'racecar_ekf_params.yaml')],
),
# Node(
# package='robot_localization',
# executable='ekf_node',
# name='ekf_filter_node',
# output='screen',
# parameters=[os.path.join(get_package_share_directory("racecar_bringup"), 'launch', 'include', 'racecar_ekf_params.yaml')],
# ),
])
2 changes: 1 addition & 1 deletion racecar_navigation/launch/slam.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def launch_setup(context, *args, **kwargs):
{'Mem/IncrementalMemory': 'false' if localization == 'true' else 'true'},
],
remappings=[
('/scan', f'/{prefix}/scan'),
('scan', f'{prefix}/scan'),
('grid_map', 'map'),
('move_base', 'move_base')
]
Expand Down
Loading

0 comments on commit 1627a7d

Please sign in to comment.