Skip to content

Commit

Permalink
Cleanup e-puck tools to run RViz alone (#712)
Browse files Browse the repository at this point in the history
* cleanup launch

* changelog
  • Loading branch information
ygoumaz authored Apr 18, 2023
1 parent 3c59c87 commit fd4ae90
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 21 deletions.
4 changes: 4 additions & 0 deletions webots_ros2/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Changelog for package webots_ros2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2023.0.4 (2023-XX-XX)
------------------
* Fixed ability to launch RViz without other tools in e-puck example.

2023.0.3 (2023-04-12)
------------------
* Fixed the calibration of the TIAGo.
Expand Down
4 changes: 4 additions & 0 deletions webots_ros2_epuck/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Changelog for package webots_ros2_epuck
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2023.0.4 (2023-XX-XX)
------------------
* Fixed ability to launch RViz without other tools.

2023.0.3 (2023-04-12)
------------------
* Refactored launch files.
Expand Down
26 changes: 5 additions & 21 deletions webots_ros2_epuck/launch/robot_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,36 +110,20 @@ def get_ros2_nodes(*args):
arguments=['0', '0', '0', '0', '0', '0', 'base_link', 'base_footprint'],
)

tool_nodes = []
# Navigation
nav_tools = IncludeLaunchDescription(
# Tools
tool_nodes = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(package_dir, 'launch', 'robot_tools_launch.py')
),
launch_arguments={
'nav': use_nav,
'rviz': use_rviz,
'use_sim_time': use_sim_time,
'fill_map': fill_map,
'mapper': use_mapper,
'map': map_filename,
}.items(),
condition=launch.conditions.IfCondition(use_nav)
)
tool_nodes.append(nav_tools)

# Mapping
mapper_tools = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(package_dir, 'launch', 'robot_tools_launch.py')
),
launch_arguments={
'nav': use_nav,
'rviz': use_rviz,
'mapper': use_mapper,
'use_sim_time': use_sim_time,
'fill_map': fill_map,
}.items(),
condition=launch.conditions.IfCondition(use_mapper)
)
tool_nodes.append(mapper_tools)

# Wait for the simulation to be ready to start the tools
tools_handler = launch.actions.RegisterEventHandler(
Expand Down

0 comments on commit fd4ae90

Please sign in to comment.