This package could control servo motor based on Ethercat COE, SOEM and Xenomai.
ethercat manager : Receive and send ethercat frames
elmo control : Send and receive status data based on CIA402
robot control : Motor control user layer
download: https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.9.38.tar.gz
download: https://gitlab.denx.de/Xenomai/xenomai/-/archive/stable/v3.0.x/xenomai-stable-v3.0.x.tar.bz2
download: https://github.com/OpenEtherCATsociety/SOEM/archive/master.zip
sudo apt-get install libncurses5-dev libssl-dev
sudo apt-get install build-essential openssl
sudo apt-get install libidn11-dev libidn11
sudo apt-get install bc
sudo apt-get install gawk sudo apt-get install libstdc++6
sudo apt-get install lib32stdc++6 sudo apt-get install zlibc minizip
Refer:https://rtt-lwr.readthedocs.io/en/latest/rtpc/xenomai3.html
uname -a
terminator show:
Linux tan-pc 4.9.38-xenomai-3.0.5 #1 SMP Thu May 23 22:01:51 CST 2019 x86_64 x86_64 x86_64 GNU/Linux
success
cd /usr/xenomai/bin
sudo ./latency
Refer:https://github.com/OpenEtherCATsociety/SOEM/blob/master/README.md
cd
git clone https://github.com/Jiongyu/module_robot.git
cd module_robot
mkdir build && cd build
cmake ..
make
cd ./../bin/
l
cia 402 control mode test
sudo ./csp_test
sudo ./csv_test
sudo ./cst_test
sudo ./pp_test
sudo ./pv_test
sudo ./pt_test
motor control ui
sudo ./ui_motor_control