Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ee461e6
Add option for admittance mode
JohnTGZ Jul 6, 2026
1c28bdb
add mass_for_critical_damping parameter
JohnTGZ Jul 8, 2026
03bef8b
add test script for admittance control
JohnTGZ Jul 8, 2026
ca44018
increase cartesian translational limits
JohnTGZ Jul 8, 2026
ca81cf5
accomodate actions with and without force torque sensors
JohnTGZ Jul 14, 2026
b8e6093
modify test_robot_control_bridge script for sending joint targets
JohnTGZ Jul 20, 2026
b292ab0
change default values for stiffness and damping parameters
JohnTGZ Jul 24, 2026
3e7aba7
linting
JohnTGZ Jul 24, 2026
1c961ed
1. Update Interpolation method to use REFLEXXES instead of LINEAR_INT…
JohnTGZ Jul 27, 2026
fdf2337
update testing script
JohnTGZ Jul 27, 2026
1c10d91
linting
JohnTGZ Jul 27, 2026
922f873
update joint/cartesian position/velocity limits
JohnTGZ Jul 28, 2026
7321af9
add USE_FIXED_CONTROL_PARAMETERS flag to fix the control parameters. …
JohnTGZ Jul 29, 2026
d29c3d0
update joint and cartesian control parameters
JohnTGZ Jul 29, 2026
0f166d6
update cartesian velocity limits
JohnTGZ Jul 30, 2026
939dbf9
update default stiffness and damping parameters for joint impedance c…
JohnTGZ Jul 30, 2026
3bfbd50
linting
JohnTGZ Jul 30, 2026
91cb8a5
update changelog
JohnTGZ Aug 3, 2026
6b3a270
clean up test scripts
JohnTGZ Aug 3, 2026
de3291a
set USE_FIXED_CONTROL_PARAMETERS to ON by default
JohnTGZ Aug 3, 2026
ac8d395
linting
JohnTGZ Aug 3, 2026
e465546
fix bug where only the first 2 values of the pose stiffness and dampi…
JohnTGZ Aug 4, 2026
c2b021b
refactor stiffness, damping and mass diagonal matrix assignments to u…
JohnTGZ Aug 4, 2026
50c9fb2
linting
JohnTGZ Aug 4, 2026
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
6 changes: 5 additions & 1 deletion flowstate/aic_flowstate_ros_bridge/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
Changelog for package aic_flowstate_ros_bridge
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0.1.1 (2026-06-11)
0.1.1 (2026-08-04)
------------------
* Expose tool transformation for FT sensor (`#603 <https://github.com/intrinsic-dev/aic/issues/603>`_)
* Subscribe to proto CaptureResults and publish ROS images (`#600 <https://github.com/intrinsic-dev/aic/issues/600>`_)
* Support admittance control (`#598 <https://github.com/intrinsic-dev/aic/issues/598>`_)
* Contributors: John TGZ, Kaushik Balasundar, Morgan Quigley

0.1.0 (2026-06-09)
------------------
Expand Down
6 changes: 6 additions & 0 deletions flowstate/aic_flowstate_ros_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@ foreach(pkg ${dep_pkgs})
endforeach()

find_package(Eigen3 REQUIRED NO_MODULE)
find_package(nlohmann_json REQUIRED)
find_package(Protobuf REQUIRED)
find_package(orocos_kdl_vendor REQUIRED)

#==================================
option(USE_FIXED_CONTROL_PARAMETERS "Use fixed control parameters" ON)
if(USE_FIXED_CONTROL_PARAMETERS)
add_compile_definitions(USE_FIXED_CONTROL_PARAMETERS)
endif()

intrinsic_sdk_protobuf_generate(
NAME agent_bridge
Expand Down Expand Up @@ -63,6 +68,7 @@ target_link_libraries(robot_control_bridge
pluginlib::pluginlib
rclcpp::rclcpp
tf2_eigen::tf2_eigen
nlohmann_json::nlohmann_json
${aic_control_interfaces_TARGETS}
${std_srvs_TARGETS}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ message RobotControlBridgeConfig {
string ft_sensor_part_name = 4;
string task_settings_file = 5;
string joint_task_settings_file = 6;
double time_to_target_seconds = 7;
string control_mode = 8;
repeated double critical_mass = 9;
}

message ToolTransformationConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,8 @@
ft_sensor_part_name: "ati"
task_settings_file: "config/default_task_settings.pbtxt"
joint_task_settings_file: "config/default_joint_task_settings.pbtxt"
time_to_target_seconds: 0.1
control_mode: "admittance"
critical_mass: [10.0, 10.0, 10.0, 5.0, 5.0, 5.0]
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ damping_smoothing_constant: 0.1

# These limits cannot exceed the application limits.
joint_limits_update: {
min_position: { values: [-6.22, -4.059, -2.77, -6.22, -6.22, -6.22] }
max_position: { values: [6.22, 0.95, 2.77, 6.22, 6.22, 6.22] }
min_position: { values: [-1.832, -1.919, -2.356, -2.792, -1.658, -1.745] }
max_position: { values: [1.221, 0.0, 0.698, 2.443, 3.141, 4.363] }
# For safety/testing, reducing velocity limits is usually the most intuitive
# and all that matters for conservative motion. Reducting acceleration and
# jerk limits can have counter-intuitive behavior.
max_velocity: { values: [0.8, 0.8, 0.8, 0.8, 0.8, 0.8] }
max_acceleration: { values: [10, 10, 10, 10, 10, 10] }
max_acceleration: { values: [5, 5, 5, 5, 5, 5] }
max_jerk: { values: [8001, 8001, 8001, 8001, 8001, 8001] }
max_effort: { values: [100.0, 100.0, 100.0, 28.0, 28.0, 28.0] }
}
Expand All @@ -21,14 +21,15 @@ joint_limits_update: {
# towards zero if the motion would push towards the limit.
limits_soft_margin_radians: 0.02

interpolation_mode: LINEAR_INTERPOLATION
# Using reflexxes interpolation constraints commands to specified kinematic limits
interpolation_mode: REFLEXXES

# Stiffness and damping cannot exceed the application limits.
stiffness: {
joints: [100., 100., 100., 50., 50., 50.]
joints: [175., 175., 175., 125., 50., 50.]
}
damping: {
joints: [40.0, 40.0, 40.0, 15.0, 15.0, 15.0]
joints: [50.0, 50.0, 50.0, 35.0, 10.0, 10.0]
}

# Using ~50% of max_effort -- and this is could be more conservative.
Expand All @@ -42,6 +43,6 @@ feedforward_torque_interpolator_settings: {
# the current joint position. An adjustment of the reference position starts
# at max_distance*activation_ratio.
reference_joint_limit_settings: {
max_distance: 0.75
max_distance: 0.1
activation_ratio: 0.75
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# Impedance control parameters need to be tuned for every robot and endeffector.
# The values below correspond to a robotiq-2f gripper with Axia80 F/T cell.
# with critical damping under the assume mass.
max_stiffness: { x: 800 y: 800 z: 800 rx: 40 ry: 40 rz: 40 }
max_damping: { x: 76 y: 76 z: 76 rx: 10 ry: 10 rz: 10 }
mass_for_critical_damping: { x: 1.8 y: 1.8 z: 1.8 rx: 0.12 ry: 0.12 rz: 0.12 }
max_stiffness: { x: 1000 y: 1000 z: 1000 rx: 150 ry: 150 rz: 150 }
max_damping: { x: 1562.049935 y: 1562.049935 z: 1562.049935 rx: 1096.814453 ry: 1096.814453 rz: 1096.814453 }
mass_for_critical_damping: { x: 10.0 y: 10.0 z: 10.0 rx: 5.0 ry: 5.0 rz: 5.0 }

# Limits of a reasonable retangular volume in front the the robot. This should
# be adjusted for different workcells and even different applications.
Expand All @@ -18,12 +18,12 @@ cartesian_limits {
max_translational_position: 1.0 # y
max_translational_position: 1.5 # z

min_translational_velocity: -0.3
min_translational_velocity: -0.3
min_translational_velocity: -0.3
max_translational_velocity: 0.3
max_translational_velocity: 0.3
max_translational_velocity: 0.3
min_translational_velocity: -0.75
min_translational_velocity: -0.75
min_translational_velocity: -0.75
max_translational_velocity: 0.75
max_translational_velocity: 0.75
max_translational_velocity: 0.75

min_translational_acceleration: -10
min_translational_acceleration: -10
Expand All @@ -39,7 +39,7 @@ cartesian_limits {
max_translational_jerk: 3000.0
max_translational_jerk: 3000.0

max_rotational_velocity: 1
max_rotational_velocity: 2
max_rotational_acceleration: 10
max_rotational_jerk: 3000.0
}
Expand Down Expand Up @@ -75,7 +75,8 @@ nullspace_target_configuration { joints: [0.0, 0.0, 0.0, 0.0, 1.57, 0.0] }

activation_percentage: -1

interpolation_mode: LINEAR_INTERPOLATION
# Using reflexxes interpolation constraints commands to specified kinematic limits
interpolation_mode: REFLEXXES

# Parameters for limiting the distance between reference pose and sensed pose.
#
Expand All @@ -102,4 +103,6 @@ pose_error_integrator_bound: { x: 10 y: 10 z: 10 rx: 2 ry: 2 rz: 2 }

# The control mode allows switching between impedance and admittance control,
# and defaults to impedance control when not specified.
control_mode: IMPEDANCE
control_mode: ADMITTANCE

sensed_wrench_deadband { x: 0.2 y: 0.2 z: 0.5 rx: 0.05 ry: 0.05 rz: 0.05 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"control_mode": "admittance",
"target_pose_stiffness": [1000.0, 1000.0, 1000.0, 150.0, 150.0, 150.0],
"target_pose_damping": [1562.049935, 1562.049935, 1562.049935, 1096.814453, 1096.814453, 1096.814453],
"target_mass": [10.0, 10.0, 10.0, 5.0, 5.0, 5.0],
"target_joint_stiffness": [175.0, 175.0, 175.0, 125.0, 50.0, 50.0],
"target_joint_damping": [50.0, 50.0, 50.0, 35.0, 10.0, 10.0]
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ def generate_launch_description():
default_value="ati",
description="F/T sensor part name",
),
DeclareLaunchArgument(
"control_mode",
default_value="admittance",
description="Control mode (admittance or impedance)",
),
DeclareLaunchArgument(
"time_to_target_seconds",
default_value="0.1",
description="Time to reach target in seconds",
),
DeclareLaunchArgument(
"use_sim_time",
default_value="true",
Expand Down Expand Up @@ -125,6 +135,10 @@ def generate_launch_description():
"config",
"default_joint_task_settings.pbtxt",
),
"control_mode": LaunchConfiguration("control_mode"),
"time_to_target_seconds": LaunchConfiguration(
"time_to_target_seconds"
),
"override_joint_names": [
"shoulder_pan_joint",
"shoulder_lift_joint",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import launch
from launch import LaunchDescription
from launch_ros.actions import Node


def generate_launch_description():
return LaunchDescription(
[
Node(
package="aic_flowstate_ros_bridge",
executable="test_robot_control_bridge.py",
name="test_robot_control_bridge_node",
output="screen",
parameters=[
{
"controller_namespace": "aic_controller",
"test_mode": "joint",
# Example test_joint_targets format: JSON string of a flattened list of joint values (or list of lists).
# The list is automatically chunked into 6 values per joint target: [j1, j2, j3, j4, j5, j6]
##########################
# Home position:
##########################
"test_joint_targets": "["
"-1.57, -1.57, -1.57, -1.57, 1.57, -1.57"
"]",
"log_filepath": "", # Empty string defaults to tcp_accuracy_<DATETIME>.json
"target_joint_stiffness": [
175.0,
175.0,
175.0,
125.0,
50.0,
50.0,
],
"target_joint_damping": [
50.0,
50.0,
50.0,
35.0,
10.0,
10.0,
],
"publish_duration": 3.0,
"stop_duration": 2.0,
}
],
)
]
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import launch
from launch import LaunchDescription
from launch_ros.actions import Node


def generate_launch_description():
return LaunchDescription(
[
Node(
package="aic_flowstate_ros_bridge",
executable="test_robot_control_bridge.py",
name="test_robot_control_bridge_node",
output="screen",
parameters=[
{
"controller_namespace": "aic_controller",
"test_mode": "pose",
# Example test_pose_targets format: JSON string of a flattened list of poses (or list of lists).
# The list is automatically chunked into 7 elements per pose: [x, y, z, qx, qy, qz, qw]
##########################
# Home position
##########################
"test_pose_targets": "["
"-0.1, -0.5, 0.5, 0.7071068, -0.7071068, 0.0, 0.0 "
"]",
"log_filepath": "", # Empty string defaults to tcp_accuracy_<DATETIME>.json
"target_pose_stiffness": [
1000.0,
1000.0,
1000.0,
150.0,
150.0,
150.0,
],
"target_pose_damping": [
1562.049935,
1562.049935,
1562.049935,
1096.814453,
1096.814453,
1096.814453,
],
"publish_duration": 5.0,
"stop_duration": 2.0,
}
],
)
]
)
1 change: 1 addition & 0 deletions flowstate/aic_flowstate_ros_bridge/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<depend>pluginlib</depend>
<depend>std_srvs</depend>
<depend>tf2_eigen</depend>
<depend>nlohmann_json</depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
Expand Down
Loading
Loading