-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDualarm Ethercat control
More file actions
37 lines (25 loc) · 1.18 KB
/
Copy pathDualarm Ethercat control
File metadata and controls
37 lines (25 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Computer - Xenomai => LAN communication
computer to xenomai code : ssh nuc@ IP
<Computer>
1. gedit ~/.bashrc
Since we want to use ROS Master from xenomai, we modify ROS_MASTER_URI into ' =http://192.168.0.18:11311 ' IP address of xenomai
For ROS_IP, use IP address from LAN PORT connected with xenomai
<NUC>
1. roscore
2. From ethercat_test dualarm_ecat_ctrl_j.cpp : we need to modify #define NUMOWHEEL_DRIVE (#number)
+ Use cm not as root
3. sudo -s : before running (3)
4. Home Position code : rosrun ethercat_test mani1_ecat_homing_j
5. Moving real manipulator joints (Getting node using ethercat) : rosrun ethercat_test dualarm_ecat_ctrl_j
+ Inside this code, we can select from two subscriber : one from manipulator controller(computer) and one from NUC (arm1,2)arm
+ We can check rostopic by runing rviz
+Made control codes : inside ethercast_test package
<USB port check>
dmesg \ grep USB
6. 토픽 직접 쏘기
dualarm_ecat_ctrl_j.cpp 수정 후
rosrun ethercat_test dualarm_ecat_ctrl_j.cpp
rostopic pub /arm2 mservo_msg/traj_id "traj:"
7.gripper의 경우 각각 python script존재
rosrun dx~ d~
rosservice call /gri g_dist 1,2