Skip to content

fix: replaced the hardcoded path, fixed time_from_start in autoreg.py#59

Merged
mhubii merged 2 commits into
lbr-stack:rollingfrom
shivaaniV:bugfix/hardcoded-path-autoreg
Apr 15, 2026
Merged

fix: replaced the hardcoded path, fixed time_from_start in autoreg.py#59
mhubii merged 2 commits into
lbr-stack:rollingfrom
shivaaniV:bugfix/hardcoded-path-autoreg

Conversation

@shivaaniV

Copy link
Copy Markdown
Contributor

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.)

point = JointTrajectoryPoint()
point.positions = joint_state.tolist()
point.time_from_start = self.get_clock().now().to_msg()
point.time_from_start.sec = 5

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this always 5 sec? Can we instead parse this dynamically somehow?

@shivaaniV

Copy link
Copy Markdown
Contributor Author

Went in and changed send_goal to send_goal_async in execute_trajectory_().

  • Previously, when the robot was supposed to move to capture poses, it would not move at all. I think run() was failing because True wasn't returned by execute_trajectory_.
  • Additionally, with send_goal, the program would capture states when the robot wasn't finished moving. I think send_goal_async resolves this.

@garylvov

Copy link
Copy Markdown

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!

@mhubii

mhubii commented Apr 15, 2026

Copy link
Copy Markdown
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?

@mhubii

mhubii commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

thanks for the contribution @shivaaniV ! Sorry for the delay. Let's merge this for now, however, this AutoReg node is actually not implemented.

@mhubii mhubii merged commit d0f1a1c into lbr-stack:rolling Apr 15, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants