Skip to content

Commit acde47a

Browse files
authored
Merge pull request #213 from lbr-stack/dev-rolling-admittance
LGTM
2 parents a5071d9 + 48f92c1 commit acde47a

108 files changed

Lines changed: 1748 additions & 1007 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ Full documentation available on [Read the Docs](https://lbr-stack.readthedocs.io
7878
```shell
7979
source install/setup.bash
8080
ros2 launch lbr_bringup rviz.launch.py \
81-
rviz_config_pkg:=lbr_bringup \
82-
rviz_config:=config/mock.rviz
81+
rviz_cfg_pkg:=lbr_bringup \
82+
rviz_cfg:=config/mock.rviz
8383
```
8484

8585
Now, run the [demos](https://lbr-stack.readthedocs.io/en/latest/lbr_fri_ros2_stack/lbr_demos/doc/lbr_demos.html). To get started with the real robot, checkout the [Hardware Setup](https://lbr-stack.readthedocs.io/en/latest/lbr_fri_ros2_stack/lbr_fri_ros2_stack/doc/hardware_setup.html).

lbr_bringup/config/gazebo.rviz

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,59 +67,59 @@ Visualization Manager:
6767
Expand Link Details: false
6868
Expand Tree: false
6969
Link Tree Style: Links in Alphabetic Order
70-
link_0:
70+
lbr_floating_link:
7171
Alpha: 1
7272
Show Axes: false
7373
Show Trail: false
74-
Value: true
75-
link_1:
74+
lbr_link_0:
7675
Alpha: 1
7776
Show Axes: false
7877
Show Trail: false
7978
Value: true
80-
link_2:
79+
lbr_link_1:
8180
Alpha: 1
8281
Show Axes: false
8382
Show Trail: false
8483
Value: true
85-
link_3:
84+
lbr_link_2:
8685
Alpha: 1
8786
Show Axes: false
8887
Show Trail: false
8988
Value: true
90-
link_4:
89+
lbr_link_3:
9190
Alpha: 1
9291
Show Axes: false
9392
Show Trail: false
9493
Value: true
95-
link_5:
94+
lbr_link_4:
9695
Alpha: 1
9796
Show Axes: false
9897
Show Trail: false
9998
Value: true
100-
link_6:
99+
lbr_link_5:
101100
Alpha: 1
102101
Show Axes: false
103102
Show Trail: false
104103
Value: true
105-
link_7:
104+
lbr_link_6:
106105
Alpha: 1
107106
Show Axes: false
108107
Show Trail: false
109108
Value: true
110-
link_ee:
109+
lbr_link_7:
111110
Alpha: 1
112111
Show Axes: false
113112
Show Trail: false
114-
world:
113+
Value: true
114+
lbr_link_ee:
115115
Alpha: 1
116116
Show Axes: false
117117
Show Trail: false
118118
Mass Properties:
119119
Inertia: false
120120
Mass: false
121121
Name: RobotModel
122-
TF Prefix: lbr
122+
TF Prefix: ""
123123
Update Interval: 0
124124
Value: true
125125
Visual Enabled: true

lbr_bringup/config/hardware.rviz

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,59 +68,59 @@ Visualization Manager:
6868
Expand Link Details: false
6969
Expand Tree: false
7070
Link Tree Style: Links in Alphabetic Order
71-
link_0:
71+
lbr_floating_link:
7272
Alpha: 1
7373
Show Axes: false
7474
Show Trail: false
75-
Value: true
76-
link_1:
75+
lbr_link_0:
7776
Alpha: 1
7877
Show Axes: false
7978
Show Trail: false
8079
Value: true
81-
link_2:
80+
lbr_link_1:
8281
Alpha: 1
8382
Show Axes: false
8483
Show Trail: false
8584
Value: true
86-
link_3:
85+
lbr_link_2:
8786
Alpha: 1
8887
Show Axes: false
8988
Show Trail: false
9089
Value: true
91-
link_4:
90+
lbr_link_3:
9291
Alpha: 1
9392
Show Axes: false
9493
Show Trail: false
9594
Value: true
96-
link_5:
95+
lbr_link_4:
9796
Alpha: 1
9897
Show Axes: false
9998
Show Trail: false
10099
Value: true
101-
link_6:
100+
lbr_link_5:
102101
Alpha: 1
103102
Show Axes: false
104103
Show Trail: false
105104
Value: true
106-
link_7:
105+
lbr_link_6:
107106
Alpha: 1
108107
Show Axes: false
109108
Show Trail: false
110109
Value: true
111-
link_ee:
110+
lbr_link_7:
112111
Alpha: 1
113112
Show Axes: false
114113
Show Trail: false
115-
world:
114+
Value: true
115+
lbr_link_ee:
116116
Alpha: 1
117117
Show Axes: false
118118
Show Trail: false
119119
Mass Properties:
120120
Inertia: false
121121
Mass: false
122122
Name: RobotModel
123-
TF Prefix: lbr
123+
TF Prefix: ""
124124
Update Interval: 0
125125
Value: true
126126
Visual Enabled: true

lbr_bringup/config/mock.rviz

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,59 +67,59 @@ Visualization Manager:
6767
Expand Link Details: false
6868
Expand Tree: false
6969
Link Tree Style: Links in Alphabetic Order
70-
link_0:
70+
lbr_floating_link:
7171
Alpha: 1
7272
Show Axes: false
7373
Show Trail: false
74-
Value: true
75-
link_1:
74+
lbr_link_0:
7675
Alpha: 1
7776
Show Axes: false
7877
Show Trail: false
7978
Value: true
80-
link_2:
79+
lbr_link_1:
8180
Alpha: 1
8281
Show Axes: false
8382
Show Trail: false
8483
Value: true
85-
link_3:
84+
lbr_link_2:
8685
Alpha: 1
8786
Show Axes: false
8887
Show Trail: false
8988
Value: true
90-
link_4:
89+
lbr_link_3:
9190
Alpha: 1
9291
Show Axes: false
9392
Show Trail: false
9493
Value: true
95-
link_5:
94+
lbr_link_4:
9695
Alpha: 1
9796
Show Axes: false
9897
Show Trail: false
9998
Value: true
100-
link_6:
99+
lbr_link_5:
101100
Alpha: 1
102101
Show Axes: false
103102
Show Trail: false
104103
Value: true
105-
link_7:
104+
lbr_link_6:
106105
Alpha: 1
107106
Show Axes: false
108107
Show Trail: false
109108
Value: true
110-
link_ee:
109+
lbr_link_7:
111110
Alpha: 1
112111
Show Axes: false
113112
Show Trail: false
114-
world:
113+
Value: true
114+
lbr_link_ee:
115115
Alpha: 1
116116
Show Axes: false
117117
Show Trail: false
118118
Mass Properties:
119119
Inertia: false
120120
Mass: false
121121
Name: RobotModel
122-
TF Prefix: lbr
122+
TF Prefix: ""
123123
Update Interval: 0
124124
Value: true
125125
Visual Enabled: true

lbr_bringup/doc/lbr_bringup.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ This launch file will spin up ``RViz`` for visualization. It will (see `rviz.lau
114114
.. code:: bash
115115
116116
ros2 launch lbr_bringup rviz.launch.py \
117-
rviz_config_pkg:=lbr_bringup \
118-
rviz_config:=config/mock.rviz # [gazebo.rviz, hardware.rviz, mock.rviz]
117+
rviz_cfg_pkg:=lbr_bringup \
118+
rviz_cfg:=config/mock.rviz # [gazebo.rviz, hardware.rviz, mock.rviz]
119119
120120
.. note::
121121
List all arguments for the launch file via ``ros2 launch lbr_bringup rviz.launch.py -s``.
@@ -156,8 +156,8 @@ The below shows an example of the `rviz.launch.py <https://github.com/lbr-stack/
156156
ld = LaunchDescription()
157157
158158
# launch arguments
159-
ld.add_action(RVizMixin.arg_rviz_config())
160-
ld.add_action(RVizMixin.arg_rviz_config_pkg())
159+
ld.add_action(RVizMixin.arg_rviz_cfg())
160+
ld.add_action(RVizMixin.arg_rviz_cfg_pkg())
161161
162162
# rviz
163163
ld.add_action(RVizMixin.node_rviz())

lbr_bringup/launch/gazebo.launch.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from launch import LaunchDescription
2-
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution
2+
from launch.substitutions import LaunchConfiguration, PythonExpression
33
from lbr_bringup.description import LBRDescriptionMixin
44
from lbr_bringup.gazebo import GazeboMixin
55
from lbr_bringup.ros2_control import LBRROS2ControlMixin
@@ -15,13 +15,15 @@ def generate_launch_description() -> LaunchDescription:
1515
LBRROS2ControlMixin.arg_ctrl()
1616
) # Gazebo loads controller configuration through lbr_description/gazebo/*.xacro from lbr_ros2_control/config/lbr_controllers.yaml
1717

18-
# static transform world -> robot_name/world
18+
# static transform world -> <robot_name>_floating_link
1919
world_robot_tf = [0, 0, 0, 0, 0, 0] # keep zero
2020
ld.add_action(
2121
LBRDescriptionMixin.node_static_tf(
2222
tf=world_robot_tf,
2323
parent="world",
24-
child=PathJoinSubstitution([LaunchConfiguration("robot_name"), "world"]),
24+
child=PythonExpression(
25+
["'", LaunchConfiguration("robot_name"), "' + '_floating_link'"]
26+
),
2527
)
2628
)
2729

lbr_bringup/launch/hardware.launch.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from launch import LaunchDescription
22
from launch.actions import RegisterEventHandler
33
from launch.event_handlers import OnProcessStart
4-
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution
4+
from launch.substitutions import LaunchConfiguration, PythonExpression
55
from lbr_bringup.description import LBRDescriptionMixin
66
from lbr_bringup.ros2_control import LBRROS2ControlMixin
77

@@ -12,17 +12,20 @@ def generate_launch_description() -> LaunchDescription:
1212
# launch arguments
1313
ld.add_action(LBRDescriptionMixin.arg_model())
1414
ld.add_action(LBRDescriptionMixin.arg_robot_name())
15-
ld.add_action(LBRDescriptionMixin.arg_port_id())
15+
ld.add_action(LBRROS2ControlMixin.arg_sys_cfg_pkg())
16+
ld.add_action(LBRROS2ControlMixin.arg_sys_cfg())
1617
ld.add_action(LBRROS2ControlMixin.arg_ctrl_cfg_pkg())
1718
ld.add_action(LBRROS2ControlMixin.arg_ctrl_cfg())
1819
ld.add_action(LBRROS2ControlMixin.arg_ctrl())
1920

20-
# static transform world -> robot_name/world
21+
# static transform world -> <robot_name>_floating_link
2122
ld.add_action(
2223
LBRDescriptionMixin.node_static_tf(
2324
tf=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
2425
parent="world",
25-
child=PathJoinSubstitution([LaunchConfiguration("robot_name"), "world"]),
26+
child=PythonExpression(
27+
["'", LaunchConfiguration("robot_name"), "' + '_floating_link'"]
28+
),
2629
)
2730
)
2831

lbr_bringup/launch/mock.launch.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from launch import LaunchDescription
22
from launch.actions import RegisterEventHandler
33
from launch.event_handlers import OnProcessStart
4-
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution
4+
from launch.substitutions import LaunchConfiguration, PythonExpression
55
from lbr_bringup.description import LBRDescriptionMixin
66
from lbr_bringup.ros2_control import LBRROS2ControlMixin
77

@@ -16,12 +16,14 @@ def generate_launch_description() -> LaunchDescription:
1616
ld.add_action(LBRROS2ControlMixin.arg_ctrl_cfg())
1717
ld.add_action(LBRROS2ControlMixin.arg_ctrl())
1818

19-
# static transform world -> robot_name/world
19+
# static transform world -> <robot_name>_floating_link
2020
ld.add_action(
2121
LBRDescriptionMixin.node_static_tf(
2222
tf=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
2323
parent="world",
24-
child=PathJoinSubstitution([LaunchConfiguration("robot_name"), "world"]),
24+
child=PythonExpression(
25+
["'", LaunchConfiguration("robot_name"), "' + '_floating_link'"]
26+
),
2527
)
2628
)
2729

lbr_bringup/launch/move_group.launch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def hidden_setup(context: LaunchContext) -> List[LaunchDescriptionEntity]:
4646

4747
# RViz if desired
4848
rviz = RVizMixin.node_rviz(
49-
rviz_config_pkg=f"{model}_moveit_config",
50-
rviz_config="config/moveit.rviz",
49+
rviz_cfg_pkg=f"{model}_moveit_config",
50+
rviz_cfg="config/moveit.rviz",
5151
parameters=LBRMoveGroupMixin.params_rviz(
5252
moveit_configs=moveit_configs_builder.to_moveit_configs()
5353
)

lbr_bringup/launch/rviz.launch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ def generate_launch_description() -> LaunchDescription:
66
ld = LaunchDescription()
77

88
# launch arguments
9-
ld.add_action(RVizMixin.arg_rviz_config())
10-
ld.add_action(RVizMixin.arg_rviz_config_pkg())
9+
ld.add_action(RVizMixin.arg_rviz_cfg())
10+
ld.add_action(RVizMixin.arg_rviz_cfg_pkg())
1111

1212
# rviz
1313
ld.add_action(RVizMixin.node_rviz())

0 commit comments

Comments
 (0)