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

Study problem related to how joint trajectory is defined when calibrating with calibration type 10 #534

Closed
MSECode opened this issue Nov 25, 2024 · 4 comments

Comments

@MSECode
Copy link
Contributor

MSECode commented Nov 25, 2024

As shown in this 2 comments:

we need to understand the "possible problem" related to how the joint trajectory is defined when using calibration type 10 for calibrating the joint at the hard stop.
One thing to mention is that, from the data we have dumped we have identified this behaviour as a possible problem, but we first need to better analyze that to be sure that it is actually a problem and why it is happening.

cc: @valegagge

@MSECode
Copy link
Contributor Author

MSECode commented Nov 26, 2024

Analyzing the behavior of the whole calibration procedure on the bench setup with the AMO encoder we can conclude that the spikes that we have seen is due to the fact that, considering how calibration type 10 has been developed, the joint is forced to reach the position in degrees defined in the parameter calibrationZero in the configuration file after the calibration. This is done because of we are using the encoder as an incremental one and thus we cannot know its starting position and how much space it is spanning while calibrating. Thus, with the command of the trajectory for moving to the zero position, we also force the joint to measure the value in degrees that we can configured in the calibrator as shown by the image below.

Image

@valegagge
Copy link
Member

Checking the code I noticed in the function JointSet_do_wait_calibration , the embeddeed motion control performs a JointSet_do_odometry and then set the joint in position control mode when the hardstop is reached. I guess these two operations are the cause of the change of the joint position and of the trajectory.

@MSECode Can you check and confirm, please?

@MSECode
Copy link
Contributor Author

MSECode commented Nov 29, 2024

Checking the code I noticed in the function JointSet_do_wait_calibration , the embeddeed motion control performs a JointSet_do_odometry and then set the joint in position control mode when the hardstop is reached. I guess these two operations are the cause of the change of the joint position and of the trajectory.

@MSECode Can you check and confirm, please?

Yes exactly.

@valegagge
Copy link
Member

ok so we can close this issue.

@MSECode MSECode closed this as completed Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants