Skip to content

Software

grasp_synergy_adapter

From github.com/shkwon98/grasp_synergy_adapter (opens in a new tab)

  • Robot arms and industry
  • Library
  • Apache-2.0

A ROS 2 adapter that drives multi-finger robot hands through predefined grasp synergies, mapping one normalized coordinate onto joint trajectories.

Facts

GitHub stars
5read on 28 Nov 2026
Last update
18 Sept 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate
Hardware it needs, as the project states it
ROS 2 Jazzy on Ubuntu 24.04, built from source; a multi-finger hand running a ros2_control JointTrajectoryController. Binary packages are not yet published.

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit ae2ab0a (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Each grasp profile is a piecewise-linear path through joint space, with knots sorted by normalized coordinate from 0.0 (preparation posture) to 1.0 (final grasp posture).
  • Normalized commands are converted into joint trajectories, with intermediate knots preserved when opening and closing.
  • Measured joint feedback is projected onto the selected grasp path.
  • Each profile exposes a trajectory topic and a FollowJointTrajectory action; only one action may run across all grasp endpoints at a time.
  • Commands are rejected until fresh feedback is available for every configured joint.
  • Grasp profiles are defined in a YAML parameter file and validated without connected hardware.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Active, last commit on 18 Sept 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit ae2ab0a

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by @shkwon98, at commit ae2ab0a, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

grasp_synergy_adapter

A ROS 2 adapter for controlling multi-finger hands through predefined grasp synergies. Each grasp exposes a JointTrajectoryController-compatible topic and action interface with a single normalized coordinate:

  • 0.0: preparation posture
  • 1.0: final grasp posture
What it does

Grasp profiles define piecewise-linear paths through joint space. The adapter converts normalized commands into joint trajectories, preserves intermediate knots during opening and closing, and projects measured joint feedback onto the selected grasp path.

Grasp command: profile + normalized coordinate
                      │
                      ▼
           grasp_synergy_adapter
                      │
                      ▼
      ros2_control JointTrajectoryController
                      │
                      ▼
                 Robot hand

The adapter runs as a regular ROS 2 node, not a ros2_control controller or hardware interface. Run one instance per physical hand or downstream controller.

Installation

Supported platform: ROS 2 Jazzy on Ubuntu 24.04.

Binary packages are not yet published. Build from source:

mkdir -p ~/ros2_ws/src
git clone https://github.com/shkwon98/grasp_synergy_adapter.git \
  ~/ros2_ws/src/grasp_synergy_adapter

cd ~/ros2_ws
source /opt/ros/jazzy/setup.bash
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-select grasp_synergy_adapter
source install/setup.bash
Quick start
1. Define a grasp profile

Save the following as grasp_profiles.yaml, replacing the joint names and positions with values appropriate for your hand:

/**/grasp_synergy_adapter:
  ros__parameters:
    synergy_joint: synergy
    joints: [finger_a_joint, finger_b_joint]
    state_timeout_sec: 0.5

    grasps:
      pinch:
        knots:
          pre_grasp:
            coordinate: 0.0
            positions: [0.0, 0.0]
          intermediate:
            coordinate: 0.5
            positions: [0.8, 0.4]
          grasp:
            coordinate: 1.0
            positions: [1.0, 1.0]

Each positions array follows the order of joints. Use radians for revolute joints and metres for prismatic joints. Adjacent knots must describe different physical poses.

To configure additional grasps, add named blocks under grasps. All profiles are discovered at startup, each with its own topic and action endpoints. Knots are sorted by coordinate, independently of their names or YAML order.

See config/example.yaml (opens in a new tab) for the annotated schema.

2. Start the adapter

With your hand's JointTrajectoryController running, start the adapter and remap all three downstream endpoints. This example uses /hand_controller:

ros2 run grasp_synergy_adapter grasp_synergy_adapter \
  --ros-args \
  --params-file /absolute/path/to/grasp_profiles.yaml \
  -r target/joint_trajectory:=/hand_controller/joint_trajectory \
  -r target/follow_joint_trajectory:=/hand_controller/follow_joint_trajectory \
  -r target/controller_state:=/hand_controller/controller_state

The controller must publish fresh state for every configured joint before the adapter accepts commands.

3. Send a grasp command

Move to the final posture of the pinch profile over one second:

ros2 topic pub --once \
  /pinch_controller/joint_trajectory \
  trajectory_msgs/msg/JointTrajectory \
  "{joint_names: [synergy], points: [{positions: [1.0], time_from_start: {sec: 1}}]}"

Command 0.0 to move toward the preparation posture, or an intermediate value to move partway along the grasp path.

For action feedback, cancellation, and results, use FollowJointTrajectory:

ros2 action send_goal \
  /pinch_controller/follow_joint_trajectory \
  control_msgs/action/FollowJointTrajectory \
  "{trajectory: {joint_names: [synergy], points: [{positions: [1.0], time_from_start: {sec: 1}}]}}" \
  --feedback

The endpoint selects the grasp profile. When switching profiles, first command 0.0 on the new endpoint to approach its preparation posture.

Interfaces

Each profile under grasps creates two relative client endpoints:

EndpointTypeDirection
<grasp>_controller/joint_trajectorytrajectory_msgs/msg/JointTrajectoryClient → adapter
<grasp>_controller/follow_joint_trajectorycontrol_msgs/action/FollowJointTrajectoryClient → adapter

Input trajectories must contain exactly one joint, named by synergy_joint, with a unitless position in [0, 1].

The adapter connects to the downstream controller through three relative endpoints:

EndpointTypeDirection
target/joint_trajectorytrajectory_msgs/msg/JointTrajectoryAdapter → controller
target/follow_joint_trajectorycontrol_msgs/action/FollowJointTrajectoryAdapter → controller
target/controller_statecontrol_msgs/msg/JointTrajectoryControllerStateController → adapter

Trajectory and state topics use reliable QoS with depth 1. Remap all three target/* endpoints together.

Parameters
ParameterTypeRequirement
synergy_jointstringRequired, nonempty; must not duplicate a physical joint name
jointsstring arrayRequired, nonempty, unique physical joint names
state_timeout_secdoubleRequired, finite, greater than zero; seconds
coordinate (per knot)doubleFinite, unique within the profile; minimum 0.0, maximum 1.0
positions (per knot)double arrayOne finite value per physical joint; radians or metres

At least one grasp profile is required, with at least two knots per profile. Grasp and knot names must be valid ROS name tokens.

Command behavior

The adapter projects the latest measured joint positions onto the selected grasp path. It expands each input trajectory point into physical joint positions and inserts every crossed knot with a proportional timestamp, in both opening and closing directions.

Topic commands use last-writer-wins behavior while no action is active. Only one action may run across all grasp endpoints. During an active action, the adapter rejects other action goals and ignores topic commands.

Commands are rejected until downstream feedback is available for every configured joint and is no older than state_timeout_sec.

Launch integration

Add this node to your launch description:

from launch_ros.actions import Node

adapter = Node(
    package="grasp_synergy_adapter",
    executable="grasp_synergy_adapter",
    name="grasp_synergy_adapter",
    namespace="/control/hand",
    parameters=["/absolute/path/to/grasp_profiles.yaml"],
    remappings=[
        ("target/joint_trajectory", "/hand_controller/joint_trajectory"),
        (
            "target/follow_joint_trajectory",
            "/hand_controller/follow_joint_trajectory",
        ),
        ("target/controller_state", "/hand_controller/controller_state"),
    ],
)

Client endpoints inherit the node namespace. In this example, the pinch topic is /control/hand/pinch_controller/joint_trajectory and its action is /control/hand/pinch_controller/follow_joint_trajectory.

Limitations and safety
  • Input trajectories are position-only. Velocity, acceleration, and effort fields are rejected.
  • Action goals forward goal_time_tolerance. Path tolerances, goal tolerances, component tolerances, and multi-DOF trajectories are not supported.
  • The adapter cannot prevent other nodes from commanding the downstream controller. Give it exclusive command ownership.
  • The downstream controller and hardware limits remain the final safety boundary.

Validate every grasp profile without connected hardware before commanding a robot.

Compatibility

This package follows Semantic Versioning (opens in a new tab). During the pre-stable 0.x series, incompatible changes use a minor version bump and include migration notes. Patch releases preserve the public contract.

The public contract covers the executable name, documented ROS interfaces and QoS, parameters, grasp-profile YAML schema, and command behavior. Headers under src/ are internal and are not installed as a public C++ API.

See CHANGELOG.rst (opens in a new tab) for release changes.

Contributing

Bug reports and focused pull requests are welcome. See CONTRIBUTING.md (opens in a new tab) for build, test, and contribution instructions, or open an issue (opens in a new tab) for reproducible problems and proposed changes.

Report security vulnerabilities through the process in SECURITY.md (opens in a new tab), rather than a public issue.

Citation

If you use this package in your research, please cite:

@software{kwon2026grasp_synergy_adapter,
  author = {Kwon, Sunghyun},
  title  = {{Grasp Synergy Adapter}: A {ROS 2} Interface for Synergy-Based Hand Control},
  url    = {https://github.com/shkwon98/grasp_synergy_adapter},
  year   = {2026}
}
License

Copyright 2026 Sunghyun Kwon. Licensed under the Apache License 2.0 (opens in a new tab).

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.