-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix mismatched id between rviz marker and node in pose graph (#635) * Corrected spelling mistakes in README.md (#646) * added support for ROS 2 Components (#652) * allow slam_params_file passed as launch arg (prior was hard coded) (#655) * allow slam_params_file passed as launch arg (prior was hard coded) * removed modifier comment * Merge Maps: Transformation of box points has been fixed. (#661) Co-authored-by: b2ed55dcda6ed1fb7822c27124846addcb174b73 <[email protected]> * Ceres solver: check parameters exist before removing them [ros2] (#659) * Ceres solver: check parameters exist before removing them * minor update logger * bump to 2.6.7 for release --------- Co-authored-by: gene.su <[email protected]> Co-authored-by: Chad Faragher <[email protected]> Co-authored-by: Antonio Brandi <[email protected]> Co-authored-by: slowrunner <[email protected]> Co-authored-by: Ozan Berk Kaya <[email protected]> Co-authored-by: b2ed55dcda6ed1fb7822c27124846addcb174b73 <[email protected]> Co-authored-by: PhamNhatTan <[email protected]>
- Loading branch information
1 parent
6f34357
commit 9beeedb
Showing
12 changed files
with
123 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,41 @@ | ||
|
||
import os | ||
|
||
from launch import LaunchDescription | ||
import launch_ros.actions | ||
from launch.actions import DeclareLaunchArgument | ||
from launch.substitutions import LaunchConfiguration | ||
from launch_ros.actions import Node | ||
from ament_index_python.packages import get_package_share_directory | ||
|
||
|
||
def generate_launch_description(): | ||
return LaunchDescription([ | ||
launch_ros.actions.Node( | ||
parameters=[ | ||
get_package_share_directory("slam_toolbox") + '/config/mapper_params_localization.yaml' | ||
], | ||
package='slam_toolbox', | ||
executable='localization_slam_toolbox_node', | ||
name='slam_toolbox', | ||
output='screen' | ||
) | ||
]) | ||
use_sim_time = LaunchConfiguration('use_sim_time') | ||
slam_params_file = LaunchConfiguration('slam_params_file') | ||
|
||
declare_use_sim_time_argument = DeclareLaunchArgument( | ||
'use_sim_time', | ||
default_value='true', | ||
description='Use simulation/Gazebo clock') | ||
declare_slam_params_file_cmd = DeclareLaunchArgument( | ||
'slam_params_file', | ||
default_value=os.path.join(get_package_share_directory("slam_toolbox"), | ||
'config', 'mapper_params_localization.yaml'), | ||
description='Full path to the ROS2 parameters file to use for the slam_toolbox node') | ||
|
||
start_localization_slam_toolbox_node = Node( | ||
parameters=[ | ||
slam_params_file, | ||
{'use_sim_time': use_sim_time} | ||
], | ||
package='slam_toolbox', | ||
executable='localization_slam_toolbox_node', | ||
name='slam_toolbox', | ||
output='screen') | ||
|
||
ld = LaunchDescription() | ||
|
||
ld.add_action(declare_use_sim_time_argument) | ||
ld.add_action(declare_slam_params_file_cmd) | ||
ld.add_action(start_localization_slam_toolbox_node) | ||
|
||
return ld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.