Skip to content

check for doubled PDO mappings - #185

Open
mathias-luedtke wants to merge 3 commits into
ros-industrial:kinetic-develfrom
mathias-luedtke:multiple-pdos
Open

check for doubled PDO mappings#185
mathias-luedtke wants to merge 3 commits into
ros-industrial:kinetic-develfrom
mathias-luedtke:multiple-pdos

Conversation

@mathias-luedtke

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

Copy link
Copy Markdown
Member

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
Copy Markdown

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

@JuliusGel

Copy link
Copy Markdown

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
Copy Markdown
Member Author

@mathias-luedtke

Copy link
Copy Markdown
Member Author

There is an issue with this fix.

Should be rescolved by auto-unmap.

@mathias-luedtke

Copy link
Copy Markdown
Member Author

@JuliusGel: does the new version work for you?

@JuliusGel

Copy link
Copy Markdown

@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
Copy Markdown
Member Author

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

This would be great :)

@JuliusGel

Copy link
Copy Markdown

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

jacknlliu commented Oct 1, 2018

Copy link
Copy Markdown

@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
Copy Markdown
Member Author

@jacknlliu: It must be rebased and tested.

@jacknlliu

Copy link
Copy Markdown

@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

mathias-luedtke commented Oct 3, 2018

Copy link
Copy Markdown
Member Author

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