fix: replaced the hardcoded path, fixed time_from_start in autoreg.py#59
Merged
mhubii merged 2 commits intoApr 15, 2026
Merged
Conversation
…rom_start in autoreg.py
garylvov
reviewed
Apr 3, 2026
| point = JointTrajectoryPoint() | ||
| point.positions = joint_state.tolist() | ||
| point.time_from_start = self.get_clock().now().to_msg() | ||
| point.time_from_start.sec = 5 |
There was a problem hiding this comment.
is this always 5 sec? Can we instead parse this dynamically somehow?
Contributor
Author
|
Went in and changed send_goal to send_goal_async in execute_trajectory_().
|
|
Hi @mhubii I'm working with my student Shivaani here. Do you mind taking a quick peek at this when you get the chance? We're going to be working on bimanual, automatic arm-to-arm extrinsic registration next ;) Thank you! |
Contributor
|
Hi @garylvov, sounds amazing. Got an important thing tomorrow, will have more time afterwards! Maybe if you guys keep contributing so much, is there a way to give you some autonomy here? |
Contributor
|
thanks for the contribution @shivaaniV ! Sorry for the delay. Let's merge this for now, however, this |
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.
Made three fixes to autoreg.py :
(1) Replaced the hardcoded path in main() with a ROS2 parameter declared in init() instead.
(2) In execute_trajectory_(), time_from_start was set to current clock time; changed this to a duration, so robot has 5 seconds between poses.
(3) execute_trajectory_() had no 'return True', so run() always treated trajectory execution as failed; added 'return True' at the end. (Didn't touch this, but might also be worth changing send_goal to send_goal_async.)