forked from frankaemika/franka_ros2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request frankaemika#52 in SRR/franka_ros2 from feat/joint-…
…impedance-with-bio-ik to humble * commit '30347acfe6122b8dd6ffd55e0a316cde2e0e73a8': bump version 0.1.11 chore: switch to orocos-lma-ik feat: joint impedance controller with moveit ik service
- Loading branch information
Showing
27 changed files
with
686 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
franka_bringup/launch/joint_impedance_with_ik_example_controller.launch.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Copyright (c) 2023 Franka Robotics GmbH | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
|
||
from launch import LaunchDescription | ||
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription | ||
from launch.launch_description_sources import PythonLaunchDescriptionSource | ||
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution | ||
from launch_ros.actions import Node | ||
from launch_ros.substitutions import FindPackageShare | ||
|
||
|
||
def generate_launch_description(): | ||
robot_ip_parameter_name = 'robot_ip' | ||
load_gripper_parameter_name = 'load_gripper' | ||
use_fake_hardware_parameter_name = 'use_fake_hardware' | ||
fake_sensor_commands_parameter_name = 'fake_sensor_commands' | ||
use_rviz_parameter_name = 'use_rviz' | ||
|
||
robot_ip = LaunchConfiguration(robot_ip_parameter_name) | ||
load_gripper = LaunchConfiguration(load_gripper_parameter_name) | ||
use_fake_hardware = LaunchConfiguration(use_fake_hardware_parameter_name) | ||
fake_sensor_commands = LaunchConfiguration(fake_sensor_commands_parameter_name) | ||
use_rviz = LaunchConfiguration(use_rviz_parameter_name) | ||
|
||
return LaunchDescription([ | ||
DeclareLaunchArgument( | ||
robot_ip_parameter_name, | ||
description='Hostname or IP address of the robot.'), | ||
DeclareLaunchArgument( | ||
use_rviz_parameter_name, | ||
default_value='false', | ||
description='Visualize the robot in Rviz'), | ||
DeclareLaunchArgument( | ||
use_fake_hardware_parameter_name, | ||
default_value='false', | ||
description='Use fake hardware'), | ||
DeclareLaunchArgument( | ||
fake_sensor_commands_parameter_name, | ||
default_value='false', | ||
description="Fake sensor commands. Only valid when '{}' is true".format( | ||
use_fake_hardware_parameter_name)), | ||
DeclareLaunchArgument( | ||
load_gripper_parameter_name, | ||
default_value='true', | ||
description='Use Franka Gripper as an end-effector, otherwise, the robot is loaded ' | ||
'without an end-effector.'), | ||
|
||
IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource([PathJoinSubstitution( | ||
[FindPackageShare('franka_bringup'), 'launch', 'franka.launch.py'])]), | ||
launch_arguments={robot_ip_parameter_name: robot_ip, | ||
load_gripper_parameter_name: load_gripper, | ||
use_fake_hardware_parameter_name: use_fake_hardware, | ||
fake_sensor_commands_parameter_name: fake_sensor_commands, | ||
use_rviz_parameter_name: use_rviz | ||
}.items(), | ||
), | ||
IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource( | ||
[ | ||
PathJoinSubstitution( | ||
[ | ||
FindPackageShare('franka_moveit_config'), | ||
'launch', | ||
'move_group.launch.py', | ||
] | ||
) | ||
] | ||
), | ||
launch_arguments={ | ||
robot_ip: robot_ip, | ||
load_gripper_parameter_name: load_gripper, | ||
use_fake_hardware_parameter_name: 'true', | ||
fake_sensor_commands_parameter_name: fake_sensor_commands, | ||
use_rviz_parameter_name: use_rviz, | ||
}.items(), | ||
), | ||
Node( | ||
package='controller_manager', | ||
executable='spawner', | ||
arguments=['joint_impedance_with_ik_example_controller'], | ||
output='screen', | ||
), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>franka_bringup</name> | ||
<version>0.1.9</version> | ||
<version>0.1.11</version> | ||
<description>Package with launch files and run-time configurations for using Franka Emika research robots with ros2_control</description> | ||
<maintainer email="[email protected]">Franka Emika GmbH</maintainer> | ||
<license>Apache 2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>franka_description</name> | ||
<version>0.1.9</version> | ||
<version>0.1.11</version> | ||
<description>franka_description contains URDF files and meshes of Franka Emika robots</description> | ||
<maintainer email="[email protected]">Franka Emika GmbH</maintainer> | ||
<license>Apache 2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.