Skip to content

Commit 77e9082

Browse files
authored
Merge pull request #117 from lbr-stack/dev-humble-ignition-gazebo
Humble ignition gazebo
2 parents 71bf3f8 + febbf5c commit 77e9082

File tree

20 files changed

+69
-42
lines changed

20 files changed

+69
-42
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
Changelog for package LBR FRI ROS 2 Stack
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
Humble v2.1.1 (2024-09-27)
5+
--------------------------
6+
* Adds support for the new Gazebo and removes support for Gazebo Classic (End-of-Life January 2025, refer https://community.gazebosim.org/t/gazebo-classic-end-of-life/2563).
7+
* ``lbr_bringup``: Updated launch files and dependencies.
8+
* ``lbr_description``: Updated ``<gazebo>`` tag to include Gazebo plugin (see https://github.com/ros-controls/gz_ros2_control/tree/humble).
9+
* ``lbr_ros2_control``: Changed ``gazebo_ros2_control/GazeboSystem`` -> ``ign_ros2_control/IgnitionSystem```
10+
411
Humble v2.1.0 (2024-09-10)
512
--------------------------
613
* De-couple launch files from ``lbr_bringup`` for easier customization (breaking change):

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ authors:
1919

2020

2121
title: "LBR-Stack: ROS 2 and Python Integration of KUKA FRI for Med and IIWA Robots"
22-
version: 2.1.0
22+
version: 2.1.1
2323
doi: 10.48550/arXiv.2311.12709
24-
date-released: 2024-09-10
24+
date-released: 2024-09-27

lbr_bringup/launch/gazebo.launch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ def generate_launch_description() -> LaunchDescription:
3838

3939
# Gazebo
4040
ld.add_action(GazeboMixin.include_gazebo()) # Gazebo has its own controller manager
41-
spawn_entity = GazeboMixin.node_spawn_entity(
42-
tf=world_robot_tf
41+
ld.add_action(GazeboMixin.node_clock_bridge())
42+
ld.add_action(
43+
GazeboMixin.node_create(tf=world_robot_tf)
4344
) # spawns robot in Gazebo through robot_description topic of robot_state_publisher
44-
ld.add_action(spawn_entity)
4545

4646
# controllers
4747
joint_state_broadcaster = LBRROS2ControlMixin.node_controller_spawner(

lbr_bringup/launch/move_group.launch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ def hidden_setup(context: LaunchContext) -> List[LaunchDescriptionEntity]:
7575
"robot_description_semantic",
7676
PathJoinSubstitution([robot_name, "robot_description_semantic"]),
7777
),
78+
(
79+
"recognized_object_array",
80+
PathJoinSubstitution([robot_name, "recognized_object_array"]),
81+
),
7882
],
7983
condition=IfCondition(LaunchConfiguration("rviz")),
8084
)

lbr_bringup/lbr_bringup/gazebo.py

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,18 @@ def include_gazebo(**kwargs) -> IncludeLaunchDescription:
1414
PythonLaunchDescriptionSource(
1515
PathJoinSubstitution(
1616
[
17-
FindPackageShare("gazebo_ros"),
17+
FindPackageShare("ros_gz_sim"),
1818
"launch",
19-
"gazebo.launch.py",
19+
"gz_sim.launch.py",
2020
]
21-
)
21+
),
2222
),
23+
launch_arguments={"gz_args": "-r empty.sdf"}.items(),
2324
**kwargs,
2425
)
2526

2627
@staticmethod
27-
def node_spawn_entity(
28+
def node_create(
2829
robot_name: Optional[Union[LaunchConfiguration, str]] = LaunchConfiguration(
2930
"robot_name", default="lbr"
3031
),
@@ -34,16 +35,27 @@ def node_spawn_entity(
3435
label = ["-x", "-y", "-z", "-R", "-P", "-Y"]
3536
tf = [str(x) for x in tf]
3637
return Node(
37-
package="gazebo_ros",
38-
executable="spawn_entity.py",
38+
package="ros_gz_sim",
39+
executable="create",
3940
arguments=[
4041
"-topic",
4142
"robot_description",
42-
"-entity",
43+
"-name",
4344
robot_name,
45+
"-allow_renaming",
4446
]
4547
+ [item for pair in zip(label, tf) for item in pair],
4648
output="screen",
4749
namespace=robot_name,
4850
**kwargs,
4951
)
52+
53+
@staticmethod
54+
def node_clock_bridge(**kwargs) -> Node:
55+
return Node(
56+
package="ros_gz_bridge",
57+
executable="parameter_bridge",
58+
arguments=["/clock@rosgraph_msgs/msg/Clock[gz.msgs.Clock"],
59+
output="screen",
60+
**kwargs,
61+
)

lbr_bringup/package.xml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>lbr_bringup</name>
5-
<version>2.1.0</version>
5+
<version>2.1.1</version>
66
<description>LBR launch files.</description>
77
<maintainer email="m.huber_1994@hotmail.de">mhubii</maintainer>
88
<license>Apache License 2.0</license>
99

1010
<buildtool_depend>ament_cmake</buildtool_depend>
1111
<buildtool_depend>ament_cmake_python</buildtool_depend>
1212

13-
<exec_depend>lbr_description</exec_depend>
14-
<exec_depend>lbr_fri_ros2</exec_depend>
15-
<exec_depend>lbr_ros2_control</exec_depend>
1613
<exec_depend>controller_manager</exec_depend>
14+
<exec_depend>ign_ros2_control</exec_depend>
1715
<exec_depend>joint_state_broadcaster</exec_depend>
1816
<exec_depend>joint_trajectory_controller</exec_depend>
19-
<exec_depend>xacro</exec_depend>
17+
<exec_depend>lbr_description</exec_depend>
18+
<exec_depend>lbr_fri_ros2</exec_depend>
19+
<exec_depend>lbr_ros2_control</exec_depend>
20+
<exec_depend>rclpy</exec_depend>
2021
<exec_depend>robot_state_publisher</exec_depend>
21-
<exec_depend>gazebo_ros</exec_depend>
22-
<exec_depend>gazebo_ros2_control</exec_depend>
22+
<exec_depend>ros_gz_sim</exec_depend>
23+
<exec_depend>ros_gz_bridge</exec_depend>
2324
<exec_depend>rviz2</exec_depend>
24-
<exec_depend>rclpy</exec_depend>
25+
<exec_depend>xacro</exec_depend>
2526

2627
<export>
2728
<build_type>ament_cmake</build_type>

lbr_demos/lbr_demos_advanced_cpp/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>lbr_demos_advanced_cpp</name>
5-
<version>2.1.0</version>
5+
<version>2.1.1</version>
66
<description>Advanced C++ demos for the lbr_ros2_control.</description>
77
<maintainer email="m.huber_1994@hotmail.de">mhubii</maintainer>
88
<license>Apache License 2.0</license>

lbr_demos/lbr_demos_advanced_py/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>lbr_demos_advanced_py</name>
5-
<version>2.1.0</version>
5+
<version>2.1.1</version>
66
<description>Advanced Python demos for the lbr_ros2_control.</description>
77
<maintainer email="m.huber_1994@hotmail.de">mhubii</maintainer>
88
<maintainer email="mower.chris@gmail.com">cmower</maintainer>

lbr_demos/lbr_demos_advanced_py/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name=package_name,
9-
version="2.1.0",
9+
version="2.1.1",
1010
packages=[package_name],
1111
data_files=[
1212
("share/ament_index/resource_index/packages", ["resource/" + package_name]),

lbr_demos/lbr_demos_cpp/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>lbr_demos_cpp</name>
5-
<version>2.1.0</version>
5+
<version>2.1.1</version>
66
<description>C++ demos for lbr_ros2_control.</description>
77
<maintainer email="m.huber_1994@hotmail.de">mhubii</maintainer>
88
<license>Apache License 2.0</license>

0 commit comments

Comments
 (0)