check for doubled PDO mappings#185
check for doubled PDO mappings#185mathias-luedtke wants to merge 3 commits intoros-industrial:kinetic-develfrom
Conversation
|
We have tested this PR. This correctly prevents one object mapping in multiple PDO. |
|
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. |
Should be rescolved by auto-unmap. |
|
@JuliusGel: does the new version work for you? |
|
@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. |
This would be great :) |
|
I am attaching the eds file that had this problem. |
|
@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? |
|
@jacknlliu: It must be rebased and tested. |
|
@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. |
84e9ffc to
8457b02
Compare
|
The current design does not allow ambiguous PDO mappings. |
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.