Skip to content
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

Provide is_tracking status for Dynamixel joints #309

Open
hello-binit opened this issue Apr 26, 2024 · 0 comments
Open

Provide is_tracking status for Dynamixel joints #309

hello-binit opened this issue Apr 26, 2024 · 0 comments

Comments

@hello-binit
Copy link
Contributor

The stepper joints will report whether the joint is tracking a given command via the "is_mg_moving" flag in the stepper status dictionary. This is useful when writing code for the robot, because it tells you when a motion has completed and/or if the joint is stalled against an obstacle in the environment (unable to push through to reach the commanded goal). The dynamixel joints don't report similar information, even though it is available (https://emanual.robotis.com/docs/en/dxl/x/xl430-w250/#moving-status) and is used internally in wait_until_at_setpoint():

if self.motor.get_moving_status() & (1 << 1) == 0:

Aside: I find the dynamixel's docs a bit confusing since bit 0, 1, and 3 all seem to report the same information. There may be some minute differences, so it's worth running some experiments to clarify and document what each bit does.
Screenshot from 2024-04-26 00-44-34

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

No branches or pull requests

1 participant