No version for distro humble showing rolling. Known supported distros are highlighted in the buttons above.
Repo symbol

hpp_exec repository

hpp_exec

ROS Distro
rolling

Repository Summary

Description
Checkout URI https://github.com/humanoid-path-planner/hpp-exec.git
VCS Type git
VCS Version devel
Last Updated 2026-12-01
Dev Status MAINTAINED
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
hpp_exec 9.0.2

README

hpp-exec

ROS2 execution utilities for HPP-generated trajectories.

Overview

You write your HPP planning script using pyhpp directly, then use hpp_exec to send the trajectory to ros2_control.

Tutorials

The official tutorials for this package are in hpp-tutorial:

  • Tutorial 6: Plan a simple arm motion and execute on Gazebo via send_trajectory()
  • Tutorial 7: Pick-and-place with graph segments, gripper actions, and execute_segments()
  • Tutorial 8: Pick-and-place while opening the gripper during arm travel

Documentation

Creating configs and times from HPP

After planning and time parameterization with HPP, you have a Path object that maps time (seconds) to robot configurations. For a plain arm trajectory, sample it at regular intervals to get configs:

import numpy as np
from pyhpp.core import TrapezoidalTimeParameterization

# After solving:
# path = planner.solve()
optimizer = TrapezoidalTimeParameterization(problem)
optimizer.maxVelocity = 0.5
optimizer.maxAcceleration = 0.5
p_timed = optimizer.optimize(path)

n_samples = 50
configs = []
times = []

for i in range(n_samples + 1):
    t = (i / n_samples) * p_timed.length()
    q, success = p_timed(t)
    if success:
        configs.append(np.array(q))
        times.append(t)

# configs: List[np.ndarray] - configuration vectors at each sample
# times: List[float] - timestamps in seconds

The HPP configuration vector typically includes all robot DOFs. Use joint_indices to select which joints to send to ros2_control (e.g., arm joints only, excluding fingers).

Sending to ros2_control

from hpp_exec import send_trajectory

send_trajectory(
    configs, times,
    joint_names=["joint1", "joint2", ...],  # ROS2 joint names
    joint_indices=list(range(7)),            # Which HPP config indices to use
)

Installation

cd hpp-exec
./run.sh

# First time inside container:
cd ~/devel/src && make all

API

```python from hpp_exec import ( BackgroundAction, JointStateReader, Segment, execute_segments, read_current_configuration, segments_by_transition, print_segments, send_trajectory, segments_from_graph, )

Main function - send trajectory to ros2_control

send_trajectory( configs, # List[np.ndarray] from HPP times, # List[float] timestamps in seconds joint_names, # List[str] ROS2 joint names controller_topic=”…”, # FollowJointTrajectory action topic )

File truncated at 100 lines see the full file

No version for distro jazzy showing rolling. Known supported distros are highlighted in the buttons above.
Repo symbol

hpp_exec repository

hpp_exec

ROS Distro
rolling

Repository Summary

Description
Checkout URI https://github.com/humanoid-path-planner/hpp-exec.git
VCS Type git
VCS Version devel
Last Updated 2026-12-01
Dev Status MAINTAINED
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
hpp_exec 9.0.2

README

hpp-exec

ROS2 execution utilities for HPP-generated trajectories.

Overview

You write your HPP planning script using pyhpp directly, then use hpp_exec to send the trajectory to ros2_control.

Tutorials

The official tutorials for this package are in hpp-tutorial:

  • Tutorial 6: Plan a simple arm motion and execute on Gazebo via send_trajectory()
  • Tutorial 7: Pick-and-place with graph segments, gripper actions, and execute_segments()
  • Tutorial 8: Pick-and-place while opening the gripper during arm travel

Documentation

Creating configs and times from HPP

After planning and time parameterization with HPP, you have a Path object that maps time (seconds) to robot configurations. For a plain arm trajectory, sample it at regular intervals to get configs:

import numpy as np
from pyhpp.core import TrapezoidalTimeParameterization

# After solving:
# path = planner.solve()
optimizer = TrapezoidalTimeParameterization(problem)
optimizer.maxVelocity = 0.5
optimizer.maxAcceleration = 0.5
p_timed = optimizer.optimize(path)

n_samples = 50
configs = []
times = []

for i in range(n_samples + 1):
    t = (i / n_samples) * p_timed.length()
    q, success = p_timed(t)
    if success:
        configs.append(np.array(q))
        times.append(t)

# configs: List[np.ndarray] - configuration vectors at each sample
# times: List[float] - timestamps in seconds

The HPP configuration vector typically includes all robot DOFs. Use joint_indices to select which joints to send to ros2_control (e.g., arm joints only, excluding fingers).

Sending to ros2_control

from hpp_exec import send_trajectory

send_trajectory(
    configs, times,
    joint_names=["joint1", "joint2", ...],  # ROS2 joint names
    joint_indices=list(range(7)),            # Which HPP config indices to use
)

Installation

cd hpp-exec
./run.sh

# First time inside container:
cd ~/devel/src && make all

API

```python from hpp_exec import ( BackgroundAction, JointStateReader, Segment, execute_segments, read_current_configuration, segments_by_transition, print_segments, send_trajectory, segments_from_graph, )

Main function - send trajectory to ros2_control

send_trajectory( configs, # List[np.ndarray] from HPP times, # List[float] timestamps in seconds joint_names, # List[str] ROS2 joint names controller_topic=”…”, # FollowJointTrajectory action topic )

File truncated at 100 lines see the full file

No version for distro kilted showing rolling. Known supported distros are highlighted in the buttons above.
Repo symbol

hpp_exec repository

hpp_exec

ROS Distro
rolling

Repository Summary

Description
Checkout URI https://github.com/humanoid-path-planner/hpp-exec.git
VCS Type git
VCS Version devel
Last Updated 2026-12-01
Dev Status MAINTAINED
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
hpp_exec 9.0.2

README

hpp-exec

ROS2 execution utilities for HPP-generated trajectories.

Overview

You write your HPP planning script using pyhpp directly, then use hpp_exec to send the trajectory to ros2_control.

Tutorials

The official tutorials for this package are in hpp-tutorial:

  • Tutorial 6: Plan a simple arm motion and execute on Gazebo via send_trajectory()
  • Tutorial 7: Pick-and-place with graph segments, gripper actions, and execute_segments()
  • Tutorial 8: Pick-and-place while opening the gripper during arm travel

Documentation

Creating configs and times from HPP

After planning and time parameterization with HPP, you have a Path object that maps time (seconds) to robot configurations. For a plain arm trajectory, sample it at regular intervals to get configs:

import numpy as np
from pyhpp.core import TrapezoidalTimeParameterization

# After solving:
# path = planner.solve()
optimizer = TrapezoidalTimeParameterization(problem)
optimizer.maxVelocity = 0.5
optimizer.maxAcceleration = 0.5
p_timed = optimizer.optimize(path)

n_samples = 50
configs = []
times = []

for i in range(n_samples + 1):
    t = (i / n_samples) * p_timed.length()
    q, success = p_timed(t)
    if success:
        configs.append(np.array(q))
        times.append(t)

# configs: List[np.ndarray] - configuration vectors at each sample
# times: List[float] - timestamps in seconds

The HPP configuration vector typically includes all robot DOFs. Use joint_indices to select which joints to send to ros2_control (e.g., arm joints only, excluding fingers).

Sending to ros2_control

from hpp_exec import send_trajectory

send_trajectory(
    configs, times,
    joint_names=["joint1", "joint2", ...],  # ROS2 joint names
    joint_indices=list(range(7)),            # Which HPP config indices to use
)

Installation

cd hpp-exec
./run.sh

# First time inside container:
cd ~/devel/src && make all

API

```python from hpp_exec import ( BackgroundAction, JointStateReader, Segment, execute_segments, read_current_configuration, segments_by_transition, print_segments, send_trajectory, segments_from_graph, )

Main function - send trajectory to ros2_control

send_trajectory( configs, # List[np.ndarray] from HPP times, # List[float] timestamps in seconds joint_names, # List[str] ROS2 joint names controller_topic=”…”, # FollowJointTrajectory action topic )

File truncated at 100 lines see the full file

No version for distro lyrical showing rolling. Known supported distros are highlighted in the buttons above.
Repo symbol

hpp_exec repository

hpp_exec

ROS Distro
rolling

Repository Summary

Description
Checkout URI https://github.com/humanoid-path-planner/hpp-exec.git
VCS Type git
VCS Version devel
Last Updated 2026-12-01
Dev Status MAINTAINED
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
hpp_exec 9.0.2

README

hpp-exec

ROS2 execution utilities for HPP-generated trajectories.

Overview

You write your HPP planning script using pyhpp directly, then use hpp_exec to send the trajectory to ros2_control.

Tutorials

The official tutorials for this package are in hpp-tutorial:

  • Tutorial 6: Plan a simple arm motion and execute on Gazebo via send_trajectory()
  • Tutorial 7: Pick-and-place with graph segments, gripper actions, and execute_segments()
  • Tutorial 8: Pick-and-place while opening the gripper during arm travel

Documentation

Creating configs and times from HPP

After planning and time parameterization with HPP, you have a Path object that maps time (seconds) to robot configurations. For a plain arm trajectory, sample it at regular intervals to get configs:

import numpy as np
from pyhpp.core import TrapezoidalTimeParameterization

# After solving:
# path = planner.solve()
optimizer = TrapezoidalTimeParameterization(problem)
optimizer.maxVelocity = 0.5
optimizer.maxAcceleration = 0.5
p_timed = optimizer.optimize(path)

n_samples = 50
configs = []
times = []

for i in range(n_samples + 1):
    t = (i / n_samples) * p_timed.length()
    q, success = p_timed(t)
    if success:
        configs.append(np.array(q))
        times.append(t)

# configs: List[np.ndarray] - configuration vectors at each sample
# times: List[float] - timestamps in seconds

The HPP configuration vector typically includes all robot DOFs. Use joint_indices to select which joints to send to ros2_control (e.g., arm joints only, excluding fingers).

Sending to ros2_control

from hpp_exec import send_trajectory

send_trajectory(
    configs, times,
    joint_names=["joint1", "joint2", ...],  # ROS2 joint names
    joint_indices=list(range(7)),            # Which HPP config indices to use
)

Installation

cd hpp-exec
./run.sh

# First time inside container:
cd ~/devel/src && make all

API

```python from hpp_exec import ( BackgroundAction, JointStateReader, Segment, execute_segments, read_current_configuration, segments_by_transition, print_segments, send_trajectory, segments_from_graph, )

Main function - send trajectory to ros2_control

send_trajectory( configs, # List[np.ndarray] from HPP times, # List[float] timestamps in seconds joint_names, # List[str] ROS2 joint names controller_topic=”…”, # FollowJointTrajectory action topic )

File truncated at 100 lines see the full file

Repo symbol

hpp_exec repository

hpp_exec

ROS Distro
rolling

Repository Summary

Description
Checkout URI https://github.com/humanoid-path-planner/hpp-exec.git
VCS Type git
VCS Version devel
Last Updated 2026-12-01
Dev Status MAINTAINED
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
hpp_exec 9.0.2

README

hpp-exec

ROS2 execution utilities for HPP-generated trajectories.

Overview

You write your HPP planning script using pyhpp directly, then use hpp_exec to send the trajectory to ros2_control.

Tutorials

The official tutorials for this package are in hpp-tutorial:

  • Tutorial 6: Plan a simple arm motion and execute on Gazebo via send_trajectory()
  • Tutorial 7: Pick-and-place with graph segments, gripper actions, and execute_segments()
  • Tutorial 8: Pick-and-place while opening the gripper during arm travel

Documentation

Creating configs and times from HPP

After planning and time parameterization with HPP, you have a Path object that maps time (seconds) to robot configurations. For a plain arm trajectory, sample it at regular intervals to get configs:

import numpy as np
from pyhpp.core import TrapezoidalTimeParameterization

# After solving:
# path = planner.solve()
optimizer = TrapezoidalTimeParameterization(problem)
optimizer.maxVelocity = 0.5
optimizer.maxAcceleration = 0.5
p_timed = optimizer.optimize(path)

n_samples = 50
configs = []
times = []

for i in range(n_samples + 1):
    t = (i / n_samples) * p_timed.length()
    q, success = p_timed(t)
    if success:
        configs.append(np.array(q))
        times.append(t)

# configs: List[np.ndarray] - configuration vectors at each sample
# times: List[float] - timestamps in seconds

The HPP configuration vector typically includes all robot DOFs. Use joint_indices to select which joints to send to ros2_control (e.g., arm joints only, excluding fingers).

Sending to ros2_control

from hpp_exec import send_trajectory

send_trajectory(
    configs, times,
    joint_names=["joint1", "joint2", ...],  # ROS2 joint names
    joint_indices=list(range(7)),            # Which HPP config indices to use
)

Installation

cd hpp-exec
./run.sh

# First time inside container:
cd ~/devel/src && make all

API

```python from hpp_exec import ( BackgroundAction, JointStateReader, Segment, execute_segments, read_current_configuration, segments_by_transition, print_segments, send_trajectory, segments_from_graph, )

Main function - send trajectory to ros2_control

send_trajectory( configs, # List[np.ndarray] from HPP times, # List[float] timestamps in seconds joint_names, # List[str] ROS2 joint names controller_topic=”…”, # FollowJointTrajectory action topic )

File truncated at 100 lines see the full file

No version for distro github showing rolling. Known supported distros are highlighted in the buttons above.
Repo symbol

hpp_exec repository

hpp_exec

ROS Distro
rolling

Repository Summary

Description
Checkout URI https://github.com/humanoid-path-planner/hpp-exec.git
VCS Type git
VCS Version devel
Last Updated 2026-12-01
Dev Status MAINTAINED
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
hpp_exec 9.0.2

README

hpp-exec

ROS2 execution utilities for HPP-generated trajectories.

Overview

You write your HPP planning script using pyhpp directly, then use hpp_exec to send the trajectory to ros2_control.

Tutorials

The official tutorials for this package are in hpp-tutorial:

  • Tutorial 6: Plan a simple arm motion and execute on Gazebo via send_trajectory()
  • Tutorial 7: Pick-and-place with graph segments, gripper actions, and execute_segments()
  • Tutorial 8: Pick-and-place while opening the gripper during arm travel

Documentation

Creating configs and times from HPP

After planning and time parameterization with HPP, you have a Path object that maps time (seconds) to robot configurations. For a plain arm trajectory, sample it at regular intervals to get configs:

import numpy as np
from pyhpp.core import TrapezoidalTimeParameterization

# After solving:
# path = planner.solve()
optimizer = TrapezoidalTimeParameterization(problem)
optimizer.maxVelocity = 0.5
optimizer.maxAcceleration = 0.5
p_timed = optimizer.optimize(path)

n_samples = 50
configs = []
times = []

for i in range(n_samples + 1):
    t = (i / n_samples) * p_timed.length()
    q, success = p_timed(t)
    if success:
        configs.append(np.array(q))
        times.append(t)

# configs: List[np.ndarray] - configuration vectors at each sample
# times: List[float] - timestamps in seconds

The HPP configuration vector typically includes all robot DOFs. Use joint_indices to select which joints to send to ros2_control (e.g., arm joints only, excluding fingers).

Sending to ros2_control

from hpp_exec import send_trajectory

send_trajectory(
    configs, times,
    joint_names=["joint1", "joint2", ...],  # ROS2 joint names
    joint_indices=list(range(7)),            # Which HPP config indices to use
)

Installation

cd hpp-exec
./run.sh

# First time inside container:
cd ~/devel/src && make all

API

```python from hpp_exec import ( BackgroundAction, JointStateReader, Segment, execute_segments, read_current_configuration, segments_by_transition, print_segments, send_trajectory, segments_from_graph, )

Main function - send trajectory to ros2_control

send_trajectory( configs, # List[np.ndarray] from HPP times, # List[float] timestamps in seconds joint_names, # List[str] ROS2 joint names controller_topic=”…”, # FollowJointTrajectory action topic )

File truncated at 100 lines see the full file

No version for distro galactic showing rolling. Known supported distros are highlighted in the buttons above.
Repo symbol

hpp_exec repository

hpp_exec

ROS Distro
rolling

Repository Summary

Description
Checkout URI https://github.com/humanoid-path-planner/hpp-exec.git
VCS Type git
VCS Version devel
Last Updated 2026-12-01
Dev Status MAINTAINED
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
hpp_exec 9.0.2

README

hpp-exec

ROS2 execution utilities for HPP-generated trajectories.

Overview

You write your HPP planning script using pyhpp directly, then use hpp_exec to send the trajectory to ros2_control.

Tutorials

The official tutorials for this package are in hpp-tutorial:

  • Tutorial 6: Plan a simple arm motion and execute on Gazebo via send_trajectory()
  • Tutorial 7: Pick-and-place with graph segments, gripper actions, and execute_segments()
  • Tutorial 8: Pick-and-place while opening the gripper during arm travel

Documentation

Creating configs and times from HPP

After planning and time parameterization with HPP, you have a Path object that maps time (seconds) to robot configurations. For a plain arm trajectory, sample it at regular intervals to get configs:

import numpy as np
from pyhpp.core import TrapezoidalTimeParameterization

# After solving:
# path = planner.solve()
optimizer = TrapezoidalTimeParameterization(problem)
optimizer.maxVelocity = 0.5
optimizer.maxAcceleration = 0.5
p_timed = optimizer.optimize(path)

n_samples = 50
configs = []
times = []

for i in range(n_samples + 1):
    t = (i / n_samples) * p_timed.length()
    q, success = p_timed(t)
    if success:
        configs.append(np.array(q))
        times.append(t)

# configs: List[np.ndarray] - configuration vectors at each sample
# times: List[float] - timestamps in seconds

The HPP configuration vector typically includes all robot DOFs. Use joint_indices to select which joints to send to ros2_control (e.g., arm joints only, excluding fingers).

Sending to ros2_control

from hpp_exec import send_trajectory

send_trajectory(
    configs, times,
    joint_names=["joint1", "joint2", ...],  # ROS2 joint names
    joint_indices=list(range(7)),            # Which HPP config indices to use
)

Installation

cd hpp-exec
./run.sh

# First time inside container:
cd ~/devel/src && make all

API

```python from hpp_exec import ( BackgroundAction, JointStateReader, Segment, execute_segments, read_current_configuration, segments_by_transition, print_segments, send_trajectory, segments_from_graph, )

Main function - send trajectory to ros2_control

send_trajectory( configs, # List[np.ndarray] from HPP times, # List[float] timestamps in seconds joint_names, # List[str] ROS2 joint names controller_topic=”…”, # FollowJointTrajectory action topic )

File truncated at 100 lines see the full file

No version for distro iron showing rolling. Known supported distros are highlighted in the buttons above.
Repo symbol

hpp_exec repository

hpp_exec

ROS Distro
rolling

Repository Summary

Description
Checkout URI https://github.com/humanoid-path-planner/hpp-exec.git
VCS Type git
VCS Version devel
Last Updated 2026-12-01
Dev Status MAINTAINED
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
hpp_exec 9.0.2

README

hpp-exec

ROS2 execution utilities for HPP-generated trajectories.

Overview

You write your HPP planning script using pyhpp directly, then use hpp_exec to send the trajectory to ros2_control.

Tutorials

The official tutorials for this package are in hpp-tutorial:

  • Tutorial 6: Plan a simple arm motion and execute on Gazebo via send_trajectory()
  • Tutorial 7: Pick-and-place with graph segments, gripper actions, and execute_segments()
  • Tutorial 8: Pick-and-place while opening the gripper during arm travel

Documentation

Creating configs and times from HPP

After planning and time parameterization with HPP, you have a Path object that maps time (seconds) to robot configurations. For a plain arm trajectory, sample it at regular intervals to get configs:

import numpy as np
from pyhpp.core import TrapezoidalTimeParameterization

# After solving:
# path = planner.solve()
optimizer = TrapezoidalTimeParameterization(problem)
optimizer.maxVelocity = 0.5
optimizer.maxAcceleration = 0.5
p_timed = optimizer.optimize(path)

n_samples = 50
configs = []
times = []

for i in range(n_samples + 1):
    t = (i / n_samples) * p_timed.length()
    q, success = p_timed(t)
    if success:
        configs.append(np.array(q))
        times.append(t)

# configs: List[np.ndarray] - configuration vectors at each sample
# times: List[float] - timestamps in seconds

The HPP configuration vector typically includes all robot DOFs. Use joint_indices to select which joints to send to ros2_control (e.g., arm joints only, excluding fingers).

Sending to ros2_control

from hpp_exec import send_trajectory

send_trajectory(
    configs, times,
    joint_names=["joint1", "joint2", ...],  # ROS2 joint names
    joint_indices=list(range(7)),            # Which HPP config indices to use
)

Installation

cd hpp-exec
./run.sh

# First time inside container:
cd ~/devel/src && make all

API

```python from hpp_exec import ( BackgroundAction, JointStateReader, Segment, execute_segments, read_current_configuration, segments_by_transition, print_segments, send_trajectory, segments_from_graph, )

Main function - send trajectory to ros2_control

send_trajectory( configs, # List[np.ndarray] from HPP times, # List[float] timestamps in seconds joint_names, # List[str] ROS2 joint names controller_topic=”…”, # FollowJointTrajectory action topic )

File truncated at 100 lines see the full file

No version for distro melodic showing rolling. Known supported distros are highlighted in the buttons above.
Repo symbol

hpp_exec repository

hpp_exec

ROS Distro
rolling

Repository Summary

Description
Checkout URI https://github.com/humanoid-path-planner/hpp-exec.git
VCS Type git
VCS Version devel
Last Updated 2026-12-01
Dev Status MAINTAINED
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
hpp_exec 9.0.2

README

hpp-exec

ROS2 execution utilities for HPP-generated trajectories.

Overview

You write your HPP planning script using pyhpp directly, then use hpp_exec to send the trajectory to ros2_control.

Tutorials

The official tutorials for this package are in hpp-tutorial:

  • Tutorial 6: Plan a simple arm motion and execute on Gazebo via send_trajectory()
  • Tutorial 7: Pick-and-place with graph segments, gripper actions, and execute_segments()
  • Tutorial 8: Pick-and-place while opening the gripper during arm travel

Documentation

Creating configs and times from HPP

After planning and time parameterization with HPP, you have a Path object that maps time (seconds) to robot configurations. For a plain arm trajectory, sample it at regular intervals to get configs:

import numpy as np
from pyhpp.core import TrapezoidalTimeParameterization

# After solving:
# path = planner.solve()
optimizer = TrapezoidalTimeParameterization(problem)
optimizer.maxVelocity = 0.5
optimizer.maxAcceleration = 0.5
p_timed = optimizer.optimize(path)

n_samples = 50
configs = []
times = []

for i in range(n_samples + 1):
    t = (i / n_samples) * p_timed.length()
    q, success = p_timed(t)
    if success:
        configs.append(np.array(q))
        times.append(t)

# configs: List[np.ndarray] - configuration vectors at each sample
# times: List[float] - timestamps in seconds

The HPP configuration vector typically includes all robot DOFs. Use joint_indices to select which joints to send to ros2_control (e.g., arm joints only, excluding fingers).

Sending to ros2_control

from hpp_exec import send_trajectory

send_trajectory(
    configs, times,
    joint_names=["joint1", "joint2", ...],  # ROS2 joint names
    joint_indices=list(range(7)),            # Which HPP config indices to use
)

Installation

cd hpp-exec
./run.sh

# First time inside container:
cd ~/devel/src && make all

API

```python from hpp_exec import ( BackgroundAction, JointStateReader, Segment, execute_segments, read_current_configuration, segments_by_transition, print_segments, send_trajectory, segments_from_graph, )

Main function - send trajectory to ros2_control

send_trajectory( configs, # List[np.ndarray] from HPP times, # List[float] timestamps in seconds joint_names, # List[str] ROS2 joint names controller_topic=”…”, # FollowJointTrajectory action topic )

File truncated at 100 lines see the full file

No version for distro noetic showing rolling. Known supported distros are highlighted in the buttons above.
Repo symbol

hpp_exec repository

hpp_exec

ROS Distro
rolling

Repository Summary

Description
Checkout URI https://github.com/humanoid-path-planner/hpp-exec.git
VCS Type git
VCS Version devel
Last Updated 2026-12-01
Dev Status MAINTAINED
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
hpp_exec 9.0.2

README

hpp-exec

ROS2 execution utilities for HPP-generated trajectories.

Overview

You write your HPP planning script using pyhpp directly, then use hpp_exec to send the trajectory to ros2_control.

Tutorials

The official tutorials for this package are in hpp-tutorial:

  • Tutorial 6: Plan a simple arm motion and execute on Gazebo via send_trajectory()
  • Tutorial 7: Pick-and-place with graph segments, gripper actions, and execute_segments()
  • Tutorial 8: Pick-and-place while opening the gripper during arm travel

Documentation

Creating configs and times from HPP

After planning and time parameterization with HPP, you have a Path object that maps time (seconds) to robot configurations. For a plain arm trajectory, sample it at regular intervals to get configs:

import numpy as np
from pyhpp.core import TrapezoidalTimeParameterization

# After solving:
# path = planner.solve()
optimizer = TrapezoidalTimeParameterization(problem)
optimizer.maxVelocity = 0.5
optimizer.maxAcceleration = 0.5
p_timed = optimizer.optimize(path)

n_samples = 50
configs = []
times = []

for i in range(n_samples + 1):
    t = (i / n_samples) * p_timed.length()
    q, success = p_timed(t)
    if success:
        configs.append(np.array(q))
        times.append(t)

# configs: List[np.ndarray] - configuration vectors at each sample
# times: List[float] - timestamps in seconds

The HPP configuration vector typically includes all robot DOFs. Use joint_indices to select which joints to send to ros2_control (e.g., arm joints only, excluding fingers).

Sending to ros2_control

from hpp_exec import send_trajectory

send_trajectory(
    configs, times,
    joint_names=["joint1", "joint2", ...],  # ROS2 joint names
    joint_indices=list(range(7)),            # Which HPP config indices to use
)

Installation

cd hpp-exec
./run.sh

# First time inside container:
cd ~/devel/src && make all

API

```python from hpp_exec import ( BackgroundAction, JointStateReader, Segment, execute_segments, read_current_configuration, segments_by_transition, print_segments, send_trajectory, segments_from_graph, )

Main function - send trajectory to ros2_control

send_trajectory( configs, # List[np.ndarray] from HPP times, # List[float] timestamps in seconds joint_names, # List[str] ROS2 joint names controller_topic=”…”, # FollowJointTrajectory action topic )

File truncated at 100 lines see the full file