Repository navigation
Feature/split body joint trajectory action - #137
Merged
Merged
Conversation
…action for joint trajectory
- Updated the JointTrajectory Goal to utilize a new time_mode and movej_trajectory_duration for trajectory planning. - Removed the previous point-wise time_mode and movej_trajectory_duration, ensuring compatibility with the new Action structure. - Introduced explicit validation for trajectory timing, ensuring non-negative and non-decreasing time_from_start values. - Updated StateMoveJ to handle Action-based trajectory requests, replacing the previous service-based approach. - Modified JointTrajectoryManager to accommodate new timing parameters and ensure proper planning of single and multi-point trajectories. - Enhanced documentation to reflect changes in the Action interface and timing mechanisms. - Deprecated old JointTrajectory Service types and ensured that all consumers are updated to the new Action-based structure.
… update related documentation
…int-trajectory-action
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. 逻辑变更
轨迹执行
时间分配
将时间模式配置统一到 Goal 层,支持:
正值 Goal 总时长会在实际规划时持久更新同名 ROS 参数,后续未指定时间的轨迹沿用该值,不自动恢复。
约束模式仅支持 DOUBLES。linear/tanh 或包含非零时间输入的约束模式请求会明确拒绝。
重复路点与停留段
DOUBLES 将包含停留的轨迹拆为连续运动块和停留块:
运动块内部保留 blending,停留边界不做转接。
转接比例
新增 Goal 级 use_waypoint_blend_ratio 开关:
逐点比例只影响本次请求,不修改 ROS 参数。该行为与使用总时长还是逐点时间无关。
只有 DOUBLES 使用转接比例;linear/tanh 不新增 blending 能力。
2. 接口变化
本次为消息接口不兼容变更,需要同步迁移并重建客户端。
3. Action 传参说明
Goal 参数
原生 ROS 消息的 bool 默认值为 false,因此时间模式请求需要明确设置 time_mode=true。
Waypoint 参数
max_* 约束规划由 DOUBLES 支持,本次不为 linear/tanh 新增相同保证。
时间输入规则
time_from_start 必须非负、非递减;相同时间仅允许相同位置。
4. 传参示例
以下位置仅用于说明消息构造。
示例一:逐点指定时间,关闭转接
第一段 2 秒、第二段 4 秒、第三段 10 秒,对应累计时间 2、6、16 秒。
此请求不修改总时长或转接比例 ROS 参数。
示例二:指定总时长,沿用控制器转接比例
此请求会将控制器 movej_trajectory_duration 更新为 16.0,
转接比例读取实际规划开始时的 movej_trajectory_blend_ratio。
示例三:指定各路点转接比例
逐点比例不会修改 movej_trajectory_blend_ratio。
DOUBLES 的非零转接可能影响中间点经过情况及实际规划时长,应查看 planned_duration。