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

check for doubled PDO mappings #185

Open
wants to merge 3 commits into
base: kinetic-devel
Choose a base branch
from

Conversation

mathias-luedtke
Copy link
Member

@mathias-luedtke mathias-luedtke commented Jun 30, 2016

As pointed out in #183 PDOs cannot be mapped twice. This patch checks for this case and stops further processing.

@JuliusGel: Can you test this fix, please.
I don't have access to a CANopen set-up right now, and it is triggered only in 301 init.

@mathias-luedtke mathias-luedtke added this to the Final indigo release milestone Jun 30, 2016
@JuliusGel
Copy link

We have tested this PR. This correctly prevents one object mapping in multiple PDO.

@JuliusGel
Copy link

There is an issue with this fix. If you call /driver/init then call /driver/shutdown and call /driver/init again there will be an exception thrown about PDO mapped twice.

@mathias-luedtke
Copy link
Member Author

There is an issue with this fix.

Should be rescolved by auto-unmap.

@mathias-luedtke
Copy link
Member Author

@JuliusGel: does the new version work for you?

@JuliusGel
Copy link

@ipa-mdl : Hi, unfortunately we had made a decision not use ros_canopen due to hardware issues. I therefore am not able to test this anymore. I could only provide a dcf that was failing if that is of any interest.

@mathias-luedtke
Copy link
Member Author

I could only provide a dcf that was failing if that is of any interest.

This would be great :)

@JuliusGel
Copy link

I am attaching the eds file that had this problem.
We were using it with Trinamic motor PD-1160. Hope this is useful.
TMCM-1160_V318.zip

@jacknlliu
Copy link

jacknlliu commented Oct 1, 2018

@ipa-mdl What's the status of this PR? We have the same issue, is there a solution for this issue? Can ros_canopen support multiple-pdos mapping now?

@mathias-luedtke mathias-luedtke changed the base branch from indigo-devel to kinetic-devel October 3, 2018 16:50
@mathias-luedtke
Copy link
Member Author

@jacknlliu: It must be rebased and tested.

@jacknlliu
Copy link

@ipa-mdl actually this PR only check the mapping and don't make ros_canopen work with this situation. If you have solutions to make doubled PDOs work with ros_canopen, we can test it.

@mathias-luedtke
Copy link
Member Author

mathias-luedtke commented Oct 3, 2018

The current design does not allow ambiguous PDO mappings.
This PR will just make it report the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants