-
Notifications
You must be signed in to change notification settings - Fork 40
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
Getting joint_state nan in ros2 control #20
Comments
Is the configuration on all three ODrives identical? In particular, maybe feedback messages weren't enabled on the third one? If that doesn't help, the next step I can think of would be to add log output to the ROS hardware interface on every incoming CAN message (lmk if more details needed). |
I have actually just run into the same problem where position for left/right botwheels are .nan.
@samuelsadok Can you be a little more specific on "maybe feedback messages weren't enabled". What are feedback messages as they relate to the odrive config? |
@harborhoffer, I solved this problem, but I completely forgot I had this ticket open. Believe it or not, on the third Odrive I accidentally wired the CAN_H to 12v (one pin off). It was enough to give the system hell, but it was robust enough to be still mostly operational. Double check your wiring. I couldn't believe it when I saw it. With "feedback messages not enabled" I think they meant the option in the CAN configuration on the Odrive. Cheers |
This turned out to be a misconfiguration of one of my odrives. |
Hi all,
I have two ODrives working perfectly with ros2 control thanks to this repo. I'm just using simple velocity controllers.
On the joint_states topic I get the joint states of my other ODrives perfectly, but the third one reports
nan
. I can control the third ODrive perfectly, so I don't think it can be an issue with how ros2 control is setup.I've tried factory resetting, etc. The position reports correctly in the web GUI. Not sure how to diagnose this further, looking for suggestions.
Thank you.
The text was updated successfully, but these errors were encountered: