Skip to content

MuShibo/robstride_actuator_bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROS package for RobStride motor control

USB2CAN Hardware:Canable

-canable (cantact clone): http://canable.io/ (STM32F042C6)

Dependency:

sudo apt-get install net-tools
sudo apt-get install can-utils
sudo apt-get install ros-noetic-can-msgs
sudo apt-get install ros-noetic-socketcan-bridge

Use of slcan in Linux Ubuntu

  1. Connect the can module to the ubuntu system, and send commands to query the device:
ls /dev/ttyACMx
  1. Map ttyACM0 to can0, and set the bit rate to 1000K:
sudo slcand -o -c -s8 /dev/ttyACM0 can0

The corresponding setting of the bit rate is : -s8 = 1M

  1. Enable CAN:
sudo ifconfig can0 up
  1. Configure the storage length of the transmission data buffer of txqueuelen:
sudo ifconfig can0 txqueuelen 100

Launch the launch file for the demo

roslaunch motor_control motor_test.launch

About

ROS package for robstride 02 actuator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published