Skip to content

Commit

Permalink
rviz visualization for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Morcos committed Jul 11, 2024
1 parent da24fda commit f3466e6
Show file tree
Hide file tree
Showing 2 changed files with 690 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opennav_coverage_demo/launch/coverage_demo_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
def generate_launch_description():
nav2_bringup_dir = get_package_share_directory('nav2_bringup')
coverage_demo_dir = get_package_share_directory('opennav_coverage_demo')
rviz_config_file = os.path.join(coverage_demo_dir, "rviz_config.rviz")

world = os.path.join(coverage_demo_dir, 'blank.world')
param_file_path = os.path.join(coverage_demo_dir, 'demo_params.yaml')
Expand Down Expand Up @@ -66,7 +67,7 @@ def generate_launch_description():
rviz_cmd = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(nav2_bringup_dir, 'launch', 'rviz_launch.py')),
launch_arguments={'namespace': ''}.items())
launch_arguments={'namespace': '','rviz_config': rviz_config_file}.items())

# start navigation
bringup_cmd = IncludeLaunchDescription(
Expand Down
Loading

0 comments on commit f3466e6

Please sign in to comment.