Package Summary
| Version | 9.0.2 |
| License | BSD-2-Clause |
| Build type | CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Maintainers
- Guilhem Saurel
Authors
- Paul Sardin
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
- Generated Doxygen documentation: user reference for the API, execution model, and troubleshooting.
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
Docker (recommended)
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
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
Unreleased
- [segments] Preserve nested boundaries and coalesce transitions
- Add JointStateReader
- [pyproject] Make the package installable with pip; align version with the HPP version
9.0.2 - 2026-07-24
9.0.0 - 2026-07-16
Package Dependencies
| Deps | Name |
|---|---|
| jrl_cmakemodules | |
| hpp_python | |
| rclpy | |
| sensor_msgs | |
| trajectory_msgs | |
| control_msgs | |
| action_msgs | |
| builtin_interfaces |
System Dependencies
| Name |
|---|
| cmake |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged hpp_exec at Robotics Stack Exchange
Package Summary
| Version | 9.0.2 |
| License | BSD-2-Clause |
| Build type | CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Maintainers
- Guilhem Saurel
Authors
- Paul Sardin
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
- Generated Doxygen documentation: user reference for the API, execution model, and troubleshooting.
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
Docker (recommended)
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
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
Unreleased
- [segments] Preserve nested boundaries and coalesce transitions
- Add JointStateReader
- [pyproject] Make the package installable with pip; align version with the HPP version
9.0.2 - 2026-07-24
9.0.0 - 2026-07-16
Package Dependencies
| Deps | Name |
|---|---|
| jrl_cmakemodules | |
| hpp_python | |
| rclpy | |
| sensor_msgs | |
| trajectory_msgs | |
| control_msgs | |
| action_msgs | |
| builtin_interfaces |
System Dependencies
| Name |
|---|
| cmake |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged hpp_exec at Robotics Stack Exchange
Package Summary
| Version | 9.0.2 |
| License | BSD-2-Clause |
| Build type | CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Maintainers
- Guilhem Saurel
Authors
- Paul Sardin
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
- Generated Doxygen documentation: user reference for the API, execution model, and troubleshooting.
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
Docker (recommended)
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
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
Unreleased
- [segments] Preserve nested boundaries and coalesce transitions
- Add JointStateReader
- [pyproject] Make the package installable with pip; align version with the HPP version
9.0.2 - 2026-07-24
9.0.0 - 2026-07-16
Package Dependencies
| Deps | Name |
|---|---|
| jrl_cmakemodules | |
| hpp_python | |
| rclpy | |
| sensor_msgs | |
| trajectory_msgs | |
| control_msgs | |
| action_msgs | |
| builtin_interfaces |
System Dependencies
| Name |
|---|
| cmake |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged hpp_exec at Robotics Stack Exchange
Package Summary
| Version | 9.0.2 |
| License | BSD-2-Clause |
| Build type | CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Maintainers
- Guilhem Saurel
Authors
- Paul Sardin
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
- Generated Doxygen documentation: user reference for the API, execution model, and troubleshooting.
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
Docker (recommended)
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
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
Unreleased
- [segments] Preserve nested boundaries and coalesce transitions
- Add JointStateReader
- [pyproject] Make the package installable with pip; align version with the HPP version
9.0.2 - 2026-07-24
9.0.0 - 2026-07-16
Package Dependencies
| Deps | Name |
|---|---|
| jrl_cmakemodules | |
| hpp_python | |
| rclpy | |
| sensor_msgs | |
| trajectory_msgs | |
| control_msgs | |
| action_msgs | |
| builtin_interfaces |
System Dependencies
| Name |
|---|
| cmake |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged hpp_exec at Robotics Stack Exchange
Package Summary
| Version | 9.0.2 |
| License | BSD-2-Clause |
| Build type | CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Maintainers
- Guilhem Saurel
Authors
- Paul Sardin
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
- Generated Doxygen documentation: user reference for the API, execution model, and troubleshooting.
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
Docker (recommended)
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
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
Unreleased
- [segments] Preserve nested boundaries and coalesce transitions
- Add JointStateReader
- [pyproject] Make the package installable with pip; align version with the HPP version
9.0.2 - 2026-07-24
9.0.0 - 2026-07-16
Package Dependencies
| Deps | Name |
|---|---|
| jrl_cmakemodules | |
| hpp_python | |
| rclpy | |
| sensor_msgs | |
| trajectory_msgs | |
| control_msgs | |
| action_msgs | |
| builtin_interfaces |
System Dependencies
| Name |
|---|
| cmake |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged hpp_exec at Robotics Stack Exchange
Package Summary
| Version | 9.0.2 |
| License | BSD-2-Clause |
| Build type | CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Maintainers
- Guilhem Saurel
Authors
- Paul Sardin
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
- Generated Doxygen documentation: user reference for the API, execution model, and troubleshooting.
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
Docker (recommended)
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
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
Unreleased
- [segments] Preserve nested boundaries and coalesce transitions
- Add JointStateReader
- [pyproject] Make the package installable with pip; align version with the HPP version
9.0.2 - 2026-07-24
9.0.0 - 2026-07-16
Package Dependencies
| Deps | Name |
|---|---|
| jrl_cmakemodules | |
| hpp_python | |
| rclpy | |
| sensor_msgs | |
| trajectory_msgs | |
| control_msgs | |
| action_msgs | |
| builtin_interfaces |
System Dependencies
| Name |
|---|
| cmake |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged hpp_exec at Robotics Stack Exchange
Package Summary
| Version | 9.0.2 |
| License | BSD-2-Clause |
| Build type | CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Maintainers
- Guilhem Saurel
Authors
- Paul Sardin
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
- Generated Doxygen documentation: user reference for the API, execution model, and troubleshooting.
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
Docker (recommended)
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
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
Unreleased
- [segments] Preserve nested boundaries and coalesce transitions
- Add JointStateReader
- [pyproject] Make the package installable with pip; align version with the HPP version
9.0.2 - 2026-07-24
9.0.0 - 2026-07-16
Package Dependencies
| Deps | Name |
|---|---|
| jrl_cmakemodules | |
| hpp_python | |
| rclpy | |
| sensor_msgs | |
| trajectory_msgs | |
| control_msgs | |
| action_msgs | |
| builtin_interfaces |
System Dependencies
| Name |
|---|
| cmake |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged hpp_exec at Robotics Stack Exchange
Package Summary
| Version | 9.0.2 |
| License | BSD-2-Clause |
| Build type | CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Maintainers
- Guilhem Saurel
Authors
- Paul Sardin
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
- Generated Doxygen documentation: user reference for the API, execution model, and troubleshooting.
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
Docker (recommended)
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
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
Unreleased
- [segments] Preserve nested boundaries and coalesce transitions
- Add JointStateReader
- [pyproject] Make the package installable with pip; align version with the HPP version
9.0.2 - 2026-07-24
9.0.0 - 2026-07-16
Package Dependencies
| Deps | Name |
|---|---|
| jrl_cmakemodules | |
| hpp_python | |
| rclpy | |
| sensor_msgs | |
| trajectory_msgs | |
| control_msgs | |
| action_msgs | |
| builtin_interfaces |
System Dependencies
| Name |
|---|
| cmake |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged hpp_exec at Robotics Stack Exchange
Package Summary
| Version | 9.0.2 |
| License | BSD-2-Clause |
| Build type | CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Maintainers
- Guilhem Saurel
Authors
- Paul Sardin
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
- Generated Doxygen documentation: user reference for the API, execution model, and troubleshooting.
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
Docker (recommended)
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
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
Unreleased
- [segments] Preserve nested boundaries and coalesce transitions
- Add JointStateReader
- [pyproject] Make the package installable with pip; align version with the HPP version
9.0.2 - 2026-07-24
9.0.0 - 2026-07-16
Package Dependencies
| Deps | Name |
|---|---|
| jrl_cmakemodules | |
| hpp_python | |
| rclpy | |
| sensor_msgs | |
| trajectory_msgs | |
| control_msgs | |
| action_msgs | |
| builtin_interfaces |
System Dependencies
| Name |
|---|
| cmake |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged hpp_exec at Robotics Stack Exchange
Package Summary
| Version | 9.0.2 |
| License | BSD-2-Clause |
| Build type | CMAKE |
| Use | RECOMMENDED |
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 (-) |
Package Description
Maintainers
- Guilhem Saurel
Authors
- Paul Sardin
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
- Generated Doxygen documentation: user reference for the API, execution model, and troubleshooting.
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
Docker (recommended)
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
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
Unreleased
- [segments] Preserve nested boundaries and coalesce transitions
- Add JointStateReader
- [pyproject] Make the package installable with pip; align version with the HPP version
9.0.2 - 2026-07-24
9.0.0 - 2026-07-16
Package Dependencies
| Deps | Name |
|---|---|
| jrl_cmakemodules | |
| hpp_python | |
| rclpy | |
| sensor_msgs | |
| trajectory_msgs | |
| control_msgs | |
| action_msgs | |
| builtin_interfaces |
System Dependencies
| Name |
|---|
| cmake |