Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport rolling to humble #223

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
03cd753
humble -> rolling, ubuntu 22.04 -> 24.04 (#180)
mhubii Oct 19, 2024
a5071d9
ign -> gz
mhubii Oct 19, 2024
9f7d243
moved configuration files to lbr_description for stand-alone urdf use
mhubii Oct 19, 2024
8832fc0
moved configuration files to lbr_description for stand-alone urdf use
mhubii Oct 19, 2024
4c02bef
updated moveit
mhubii Oct 19, 2024
9b65978
robot name prefix in config files (#189)
mhubii Oct 19, 2024
f76be58
controller modifications for name prefix (#189)
mhubii Oct 19, 2024
b33aec2
fixed lambda capture for rt prio
mhubii Oct 19, 2024
88bd630
fixed licenses
mhubii Oct 19, 2024
5e21032
added system config to launch arguments
mhubii Oct 20, 2024
62a5cfa
fixed the default path to system config
mhubii Oct 20, 2024
0115ba2
rviz_config -> rviz_cfg
mhubii Oct 20, 2024
dae64a8
added a kinematics class
mhubii Oct 20, 2024
ffe3fac
added a twist controller
mhubii Oct 20, 2024
b9c1c43
turn off controller in case to command are received
mhubii Oct 20, 2024
27fcbd4
added default values for sys cfg
mhubii Oct 20, 2024
bb31bcc
added a floating link with name prefix (#189)
mhubii Oct 21, 2024
079232b
bundling types in shared header
mhubii Oct 22, 2024
ea11f1e
replaced types among interfaces
mhubii Oct 22, 2024
2171bd8
added a N_JNTS alias to types
mhubii Oct 22, 2024
ac36e53
added a worker class
mhubii Oct 22, 2024
74afbb8
removed redundant members
mhubii Oct 22, 2024
ebe74f6
Merge pull request #214 from lbr-stack/dev-rolling-worker
mhubii Oct 22, 2024
48f92c1
moved the FT estimation into an asynchronous thread (#213)
mhubii Oct 22, 2024
acde47a
Merge pull request #213 from lbr-stack/dev-rolling-admittance
mhubii Oct 22, 2024
e83a29e
Revert "humble -> rolling, ubuntu 22.04 -> 24.04 (#180)"
mhubii Nov 20, 2024
5a10d17
Revert "ign -> gz"
mhubii Nov 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ Full documentation available on [Read the Docs](https://lbr-stack.readthedocs.io
```shell
source install/setup.bash
ros2 launch lbr_bringup rviz.launch.py \
rviz_config_pkg:=lbr_bringup \
rviz_config:=config/mock.rviz
rviz_cfg_pkg:=lbr_bringup \
rviz_cfg:=config/mock.rviz
```

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).
Expand Down
24 changes: 12 additions & 12 deletions lbr_bringup/config/gazebo.rviz
Original file line number Diff line number Diff line change
Expand Up @@ -67,59 +67,59 @@ Visualization Manager:
Expand Link Details: false
Expand Tree: false
Link Tree Style: Links in Alphabetic Order
link_0:
lbr_floating_link:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_1:
lbr_link_0:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_2:
lbr_link_1:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_3:
lbr_link_2:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_4:
lbr_link_3:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_5:
lbr_link_4:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_6:
lbr_link_5:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_7:
lbr_link_6:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_ee:
lbr_link_7:
Alpha: 1
Show Axes: false
Show Trail: false
world:
Value: true
lbr_link_ee:
Alpha: 1
Show Axes: false
Show Trail: false
Mass Properties:
Inertia: false
Mass: false
Name: RobotModel
TF Prefix: lbr
TF Prefix: ""
Update Interval: 0
Value: true
Visual Enabled: true
Expand Down
24 changes: 12 additions & 12 deletions lbr_bringup/config/hardware.rviz
Original file line number Diff line number Diff line change
Expand Up @@ -68,59 +68,59 @@ Visualization Manager:
Expand Link Details: false
Expand Tree: false
Link Tree Style: Links in Alphabetic Order
link_0:
lbr_floating_link:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_1:
lbr_link_0:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_2:
lbr_link_1:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_3:
lbr_link_2:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_4:
lbr_link_3:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_5:
lbr_link_4:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_6:
lbr_link_5:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_7:
lbr_link_6:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_ee:
lbr_link_7:
Alpha: 1
Show Axes: false
Show Trail: false
world:
Value: true
lbr_link_ee:
Alpha: 1
Show Axes: false
Show Trail: false
Mass Properties:
Inertia: false
Mass: false
Name: RobotModel
TF Prefix: lbr
TF Prefix: ""
Update Interval: 0
Value: true
Visual Enabled: true
Expand Down
24 changes: 12 additions & 12 deletions lbr_bringup/config/mock.rviz
Original file line number Diff line number Diff line change
Expand Up @@ -67,59 +67,59 @@ Visualization Manager:
Expand Link Details: false
Expand Tree: false
Link Tree Style: Links in Alphabetic Order
link_0:
lbr_floating_link:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_1:
lbr_link_0:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_2:
lbr_link_1:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_3:
lbr_link_2:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_4:
lbr_link_3:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_5:
lbr_link_4:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_6:
lbr_link_5:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_7:
lbr_link_6:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
link_ee:
lbr_link_7:
Alpha: 1
Show Axes: false
Show Trail: false
world:
Value: true
lbr_link_ee:
Alpha: 1
Show Axes: false
Show Trail: false
Mass Properties:
Inertia: false
Mass: false
Name: RobotModel
TF Prefix: lbr
TF Prefix: ""
Update Interval: 0
Value: true
Visual Enabled: true
Expand Down
8 changes: 4 additions & 4 deletions lbr_bringup/doc/lbr_bringup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ This launch file will spin up ``RViz`` for visualization. It will (see `rviz.lau
.. code:: bash

ros2 launch lbr_bringup rviz.launch.py \
rviz_config_pkg:=lbr_bringup \
rviz_config:=config/mock.rviz # [gazebo.rviz, hardware.rviz, mock.rviz]
rviz_cfg_pkg:=lbr_bringup \
rviz_cfg:=config/mock.rviz # [gazebo.rviz, hardware.rviz, mock.rviz]

.. note::
List all arguments for the launch file via ``ros2 launch lbr_bringup rviz.launch.py -s``.
Expand Down Expand Up @@ -156,8 +156,8 @@ The below shows an example of the `rviz.launch.py <https://github.com/lbr-stack/
ld = LaunchDescription()

# launch arguments
ld.add_action(RVizMixin.arg_rviz_config())
ld.add_action(RVizMixin.arg_rviz_config_pkg())
ld.add_action(RVizMixin.arg_rviz_cfg())
ld.add_action(RVizMixin.arg_rviz_cfg_pkg())

# rviz
ld.add_action(RVizMixin.node_rviz())
Expand Down
8 changes: 5 additions & 3 deletions lbr_bringup/launch/gazebo.launch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from launch import LaunchDescription
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution
from launch.substitutions import LaunchConfiguration, PythonExpression
from lbr_bringup.description import LBRDescriptionMixin
from lbr_bringup.gazebo import GazeboMixin
from lbr_bringup.ros2_control import LBRROS2ControlMixin
Expand All @@ -15,13 +15,15 @@ def generate_launch_description() -> LaunchDescription:
LBRROS2ControlMixin.arg_ctrl()
) # Gazebo loads controller configuration through lbr_description/gazebo/*.xacro from lbr_ros2_control/config/lbr_controllers.yaml

# static transform world -> robot_name/world
# static transform world -> <robot_name>_floating_link
world_robot_tf = [0, 0, 0, 0, 0, 0] # keep zero
ld.add_action(
LBRDescriptionMixin.node_static_tf(
tf=world_robot_tf,
parent="world",
child=PathJoinSubstitution([LaunchConfiguration("robot_name"), "world"]),
child=PythonExpression(
["'", LaunchConfiguration("robot_name"), "' + '_floating_link'"]
),
)
)

Expand Down
11 changes: 7 additions & 4 deletions lbr_bringup/launch/hardware.launch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from launch import LaunchDescription
from launch.actions import RegisterEventHandler
from launch.event_handlers import OnProcessStart
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution
from launch.substitutions import LaunchConfiguration, PythonExpression
from lbr_bringup.description import LBRDescriptionMixin
from lbr_bringup.ros2_control import LBRROS2ControlMixin

Expand All @@ -12,17 +12,20 @@ def generate_launch_description() -> LaunchDescription:
# launch arguments
ld.add_action(LBRDescriptionMixin.arg_model())
ld.add_action(LBRDescriptionMixin.arg_robot_name())
ld.add_action(LBRDescriptionMixin.arg_port_id())
ld.add_action(LBRROS2ControlMixin.arg_sys_cfg_pkg())
ld.add_action(LBRROS2ControlMixin.arg_sys_cfg())
ld.add_action(LBRROS2ControlMixin.arg_ctrl_cfg_pkg())
ld.add_action(LBRROS2ControlMixin.arg_ctrl_cfg())
ld.add_action(LBRROS2ControlMixin.arg_ctrl())

# static transform world -> robot_name/world
# static transform world -> <robot_name>_floating_link
ld.add_action(
LBRDescriptionMixin.node_static_tf(
tf=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
parent="world",
child=PathJoinSubstitution([LaunchConfiguration("robot_name"), "world"]),
child=PythonExpression(
["'", LaunchConfiguration("robot_name"), "' + '_floating_link'"]
),
)
)

Expand Down
8 changes: 5 additions & 3 deletions lbr_bringup/launch/mock.launch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from launch import LaunchDescription
from launch.actions import RegisterEventHandler
from launch.event_handlers import OnProcessStart
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution
from launch.substitutions import LaunchConfiguration, PythonExpression
from lbr_bringup.description import LBRDescriptionMixin
from lbr_bringup.ros2_control import LBRROS2ControlMixin

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

# static transform world -> robot_name/world
# static transform world -> <robot_name>_floating_link
ld.add_action(
LBRDescriptionMixin.node_static_tf(
tf=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
parent="world",
child=PathJoinSubstitution([LaunchConfiguration("robot_name"), "world"]),
child=PythonExpression(
["'", LaunchConfiguration("robot_name"), "' + '_floating_link'"]
),
)
)

Expand Down
4 changes: 2 additions & 2 deletions lbr_bringup/launch/move_group.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def hidden_setup(context: LaunchContext) -> List[LaunchDescriptionEntity]:

# RViz if desired
rviz = RVizMixin.node_rviz(
rviz_config_pkg=f"{model}_moveit_config",
rviz_config="config/moveit.rviz",
rviz_cfg_pkg=f"{model}_moveit_config",
rviz_cfg="config/moveit.rviz",
parameters=LBRMoveGroupMixin.params_rviz(
moveit_configs=moveit_configs_builder.to_moveit_configs()
)
Expand Down
4 changes: 2 additions & 2 deletions lbr_bringup/launch/rviz.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def generate_launch_description() -> LaunchDescription:
ld = LaunchDescription()

# launch arguments
ld.add_action(RVizMixin.arg_rviz_config())
ld.add_action(RVizMixin.arg_rviz_config_pkg())
ld.add_action(RVizMixin.arg_rviz_cfg())
ld.add_action(RVizMixin.arg_rviz_cfg_pkg())

# rviz
ld.add_action(RVizMixin.node_rviz())
Expand Down
Loading
Loading