Skip to content

Commit

Permalink
Prepare demo launch files
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Aug 26, 2023
1 parent 8cabcb0 commit 314f94b
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 376 deletions.
2 changes: 1 addition & 1 deletion mrpt_local_obstacles/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<license>BSD</license>

<url type="website">https://wiki.ros.org/mrpt_local_obstacles</url>
<url type="website">https://github.com/mrpt-ros-pkg/mrpt_navigation</url>


<buildtool_depend>ament_cmake</buildtool_depend>
Expand Down
2 changes: 1 addition & 1 deletion mrpt_map/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<maintainer email="[email protected]">Shravan S Rai</maintainer>

<license>BSD</license>
<url type="website">https://wiki.ros.org/mrpt_map</url>
<url type="website">https://github.com/mrpt-ros-pkg/mrpt_navigation</url>

<buildtool_depend>ament_cmake</buildtool_depend>

Expand Down
2 changes: 1 addition & 1 deletion mrpt_msgs_bridge/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<version>1.0.3</version>
<description>C++ library to convert between custom mrpt_msgs messages and native MRPT classes</description>

<url type="website">https://www.mrpt.org/</url>
<url type="website">https://github.com/mrpt-ros-pkg/mrpt_navigation</url>
<maintainer email="[email protected]">José Luis Blanco-Claraco</maintainer>
<maintainer email="[email protected]">Shravan S Rai</maintainer>

Expand Down
2 changes: 1 addition & 1 deletion mrpt_pf_localization/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ install(
)

install(
DIRECTORY launch tutorial
DIRECTORY launch params
DESTINATION share/${PROJECT_NAME}
)

Expand Down
48 changes: 0 additions & 48 deletions mrpt_pf_localization/launch/demo_2d_lidar.launch.py

This file was deleted.

56 changes: 56 additions & 0 deletions mrpt_pf_localization/launch/demo_2d_lidar_gridmap.launch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

# ROS2 launch file

from launch import LaunchDescription
from launch.substitutions import TextSubstitution
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import Node
from launch.actions import DeclareLaunchArgument
from ament_index_python import get_package_share_directory
import os


def generate_launch_description():
pfLocDir = get_package_share_directory("mrpt_pf_localization")
pfTutorialsDir = get_package_share_directory("mrpt_tutorials")
print('pfLocDir : ' + pfLocDir)
print('pfTutorialsDir : ' + pfTutorialsDir)

# args that can be set from the command line or a default will be used
mrpt_map_config_file_launch_arg = DeclareLaunchArgument(
"mrpt_map_config_file", default_value=TextSubstitution(
text=os.path.join(pfLocDir, 'params', 'map-occgrid2d.ini')))

mrpt_simplemap_file_launch_arg = DeclareLaunchArgument(
"mrpt_simplemap_file", default_value=TextSubstitution(
text=os.path.join(pfTutorialsDir, 'maps', 'gh25_real_top_laser.simplemap')))

defaultParamsFile = os.path.join(pfLocDir, 'params', 'default.config.yaml')

mvsim_node = Node(
package='mrpt_pf_localization',
executable='mrpt_pf_localization_node',
name='mrpt_pf_localization',
output='screen',
parameters=[
defaultParamsFile,
{
"mrpt_map_config_file": LaunchConfiguration('mrpt_map_config_file'),
"mrpt_simplemap_file": LaunchConfiguration('mrpt_simplemap_file'),
}]
)

rviz2_node = Node(
package='rviz2',
executable='rviz2',
name='rviz2',
arguments=[
'-d', [os.path.join(pfTutorialsDir, 'rviz', 'demo_localization.rviz')]]
)

return LaunchDescription([
mrpt_map_config_file_launch_arg,
mrpt_simplemap_file_launch_arg,
mvsim_node,
rviz2_node
])
4 changes: 3 additions & 1 deletion mrpt_pf_localization/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
but supports different particle-filter algorithms, several grid maps at
different heights, range-only localization, etc.</description>

<url type="website">https://www.mrpt.org/</url>
<url type="website">https://github.com/mrpt-ros-pkg/mrpt_navigation</url>
<maintainer email="[email protected]">Markus Bader</maintainer>
<maintainer email="[email protected]">Jose Luis Blanco-Claraco</maintainer>
<author>Markus Bader</author>
Expand All @@ -34,6 +34,8 @@

<depend>ament_lint_common</depend>

<test_depend>mrpt_tutorials</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down
2 changes: 1 addition & 1 deletion mrpt_pf_localization/params/default.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# PFLocalizationCore class skipping those two top-level YAML maps, as done
# in the unit tests (see "test/*.cpp")
#
mrpt_pf_localization_node:
mrpt_pf_localization:
ros__parameters:
# If false (default), will use 2D (SE(2)) particle filter.
# Otherwise,the 3D mode (SE(3)) is enabled.
Expand Down
2 changes: 1 addition & 1 deletion mrpt_reactivenav2d/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<license>BSD</license>

<url type="website">https://wiki.ros.org/mrpt_reactivenav2d</url>
<url type="website">https://github.com/mrpt-ros-pkg/mrpt_navigation</url>

<buildtool_depend>ament_cmake</buildtool_depend>

Expand Down
2 changes: 1 addition & 1 deletion mrpt_tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ find_package(ament_cmake REQUIRED)

# Mark other files for installation (e.g. launch and bag files, etc.)
install(DIRECTORY
cfg
datasets
gazebo
launch
maps
Expand Down
160 changes: 0 additions & 160 deletions mrpt_tutorials/cfg/pf-localization.ini

This file was deleted.

Loading

0 comments on commit 314f94b

Please sign in to comment.