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

Netdev Support? #5

Open
civerachb-cpr opened this issue Jul 28, 2021 · 0 comments
Open

Netdev Support? #5

civerachb-cpr opened this issue Jul 28, 2021 · 0 comments

Comments

@civerachb-cpr
Copy link

This question relates to RobotnikAutomation/barrett_hand#18.
The short version is that I have a mobile robot that uses a Peak PCI CAN card to communicate with the drive system and BMS. I also have 2x Peak USB adapters, each connected to a Barrett hand.
The drive system and BMS both require netdev support to work; compiling the Peak driver with make NET=NO_NETDEV_SUPPORT prevents the drive system and BMS from working correctly. Compiling the Peak driver with make netdev results in the base platform being mobile and the BMS operating, but causes the driver for the hands to crash with the following error (output from the bhand_control ROS package):

[ERROR] [1627403464.665821]: pyHand: init_hand: error: (0) Error Number: -0x1 while attempting to read

[ERROR] [1627403464.669740]: pyHand: init_hand: error: (1) Error Number: -0x1 while attempting to read

[ERROR] [1627403464.674769]: pyHand: init_hand: error: (2) Error Number: -0x1 while attempting to read

[ERROR] [1627403464.679061]: pyHand: init_hand: error: (3) Error Number: -0x1 while attempting to read

[ERROR] [1627403464.683329]: pyHand: init_hand: error: (4) Error Number: -0x1 while attempting to read

[ERROR] [1627403464.685178]: /bhand_node::handActions: error on INIT_HAND service
[ERROR] [1627403464.686852]: /bhand_node::canError: Errors on CAN bus
[INFO] [1627403464.688649]: BHand::switchToState: FAILURE_STATE

Is it possible to use pcan_python with the netdev option enabled in the pcan kernel module? Or is there a combination of flags I need to use to enable both netdev and chardev simultaneously? (I don't know if that latter option is even possible.)

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

No branches or pull requests

1 participant