Skip to content

Commit

Permalink
missing remappings of gravity and impedance control topics
Browse files Browse the repository at this point in the history
  • Loading branch information
Hydran00 committed Dec 4, 2024
1 parent afa1f4f commit f34f51e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lbr_bringup/lbr_bringup/ros2_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ def arg_ctrl() -> DeclareLaunchArgument:
"lbr_torque_command_controller",
"lbr_wrench_command_controller",
"twist_controller",
"cartesian_impedance_controller",
"gravity_compensation"
"gravity_compensation",
"cartesian_impedance_controller"
],
)

@staticmethod
def arg_sys_cfg_pkg() -> DeclareLaunchArgument:
return DeclareLaunchArgument(
Expand All @@ -68,7 +68,6 @@ def arg_use_sim_time() -> DeclareLaunchArgument:

@staticmethod
def node_ros2_control(
robot_description: Dict[str, str],
robot_name: Optional[Union[LaunchConfiguration, str]] = LaunchConfiguration(
"robot_name", default="lbr"
),
Expand All @@ -84,8 +83,7 @@ def node_ros2_control(
package="controller_manager",
executable="ros2_control_node",
parameters=[
robot_description,
{"use_sim_time": False},
{"use_sim_time": use_sim_time},
PathJoinSubstitution(
[
FindPackageShare(
Expand All @@ -104,7 +102,7 @@ def node_ros2_control(
remappings=[
("~/robot_description", "robot_description"),
("cartesian_impedance_controller/target_frame", "target_frame"),
("cartesian_impedance_controller/target_wrench", "target_wrench"),
("cartesian_impedance_controller/target_wrench", "target_wrench")
],
**kwargs,
)
Expand Down
1 change: 1 addition & 0 deletions lbr_description/ros2_control/lbr_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,5 @@
- lbr_A5
- lbr_A6
- lbr_A7
# flag used to enable position command together with effort command
kuka: true

0 comments on commit f34f51e

Please sign in to comment.