Robotics StackExchange | Archived questions

how to use kvaser for schunk lwa4p

hi fiends. i'm new on ros and i need to understand how to interact with the lwa4p. somebody can help me?? but i have the "KVASER LEAF ligth 2

i tryed the following: i installed the linuxcan diver for kvaser manually and i changed the name

can0 for leaf0 in the can0.yaml file

then i tryed to run robot.launch and doesnt work :

velarje1@cemie-p02:~/schunkws$ rosservice call /arm/driver/init success: data: False errormessage: data: CAN init failed

my question is ... do i need to change anything else? or i need to use the peak only for this application? thank you very much

Asked by velardeje1 on 2015-03-18 18:57:45 UTC

Comments

Answers

It might be a little bit too late, but you can find more information on the CAN implementation here: http://wiki.ros.org/socketcan_interface

The current implementation just wraps the SocketCAN net interface (not to be confused with the actual device, maybe we should rename the parameter name). I have tested PEAK and ESD only and both came up as can0, can1 etc.

However, KVASER should be supported since kernel 3.8: http://www.kvaser.com/faq/linux-can-use-socketcan-kvaser-interface/ If the can-utils work, then ros_canopen should work as well.

Asked by Mathias Lüdtke on 2015-06-22 09:18:20 UTC

Comments

I have a Kvaser CAN USB and it shows up as can0 on my system.

Asked by ahendrix on 2015-06-22 11:35:58 UTC

Thanks, good to know :)

Asked by Mathias Lüdtke on 2015-06-22 12:36:50 UTC

You need to uninstall the Kvaser drivers in order to use the SocketCAN. SocketCAN gets blacklisted by installing the LinuxCAN.

You may want to take a look at https://answers.ros.org/question/308591/is-it-possible-to-use-kvaser-can-to-usb-to-read-canopen-device/

where I have already explained that.

Asked by speloot on 2019-04-09 10:22:58 UTC

Comments