ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Their installation instructions look very out of date (they're still using rosmake).

Drivers for the PEAK CAN adapters are now included in the Linux kernel, and using them through SocketCAN is simpler and more portable than using the proprietary drivers.

The wikipedia article describes how to use the virtual can interface. For a real interface, you don't need to create the interface, but you do need set the bit rate and enable the interface manually. You can do this with the following commands:

sudo ip link set can0 type can bitrate 500000
sudo ip link set can0 up

Or you can make it autoconfigure by adding the following interface configuration to your /etc/network/interfaces:

allow-hotplug can0
iface can0 inet manual
    pre-up ip link set can0 type can bitrate 500000

Their installation instructions look very out of date (they're still using rosmake).

Drivers for the PEAK CAN adapters are now included in the Linux kernel, and using them through SocketCAN is simpler and more portable than using the proprietary drivers.

The wikipedia article describes how to use the virtual can interface. For a real interface, you don't need to create the interface, but you do need set the bit rate and enable the interface manually. You can do this with the following commands:

sudo ip link set can0 type can bitrate 500000
sudo ip link set can0 up

Or OR you can make it autoconfigure by adding the following interface configuration to your /etc/network/interfaces:

allow-hotplug can0
iface can0 inet manual
    pre-up ip link set can0 type can bitrate 500000