-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
driver: suspicuous magic nr (3) in JointTrajectoryAction::withinGoalConstraints(..) #103
Comments
@thiagodefreitas: anything you could share? |
Thanks @jettan and @mbharatheesha for reporting. |
@ted-miller: is there a special case for SDA robots where only checking the 4th group to determine completion makes sense? |
@gavanderhoorn On an SDA, the 3rd and 4th groups are duplicates of eachother. They both represent the waist axis (15th axis) which is a shared base-axis for each of the 7 axis arms. The position of group [2] and [3] should always match. I don't understand if/how this applies to your situation... but that is the only thing "special" about an SDA that I can think of. |
Right, thanks for clarification. I'm having a hard time understanding why this was implemented this way, and it also seems rather specific to setups with 4 groups. I'm hoping @thiagodefreitas can shed some light on this, but I'm not sure he even monitors his github account anymore. |
Reclassifying this as a bug for now, based on input from @ted-miller and my understanding of the code. |
With #227 merged (which fixed #236 proposes to remove this particular overload however as it doesn't appear to be actually used anywhere in the JTA. If/when accepted, this issue can probably be closed. |
Closing this as #236 was merged. |
I'm not sure I completely understand the flow of control in
JointTrajectoryAction
, but it would appearJointTrajectoryAction::withinGoalConstraints(const control_msgs::FollowJointTrajectoryFeedbackConstPtr &msg, const motoman_msgs::DynamicJointTrajectory & traj)
(here) compares the current state of a group's trajectory execution with thepositions
vector of the 4th group, irrespective of the group for which it has been passed joint states or a trajectory (here).Excerpt:
Note the magic nr
3
two times in this.At leas the magic nr would need to be explained, but I'm rather curious how this would work on systems with
> 1
and< 4
groups.The text was updated successfully, but these errors were encountered: