You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+10-6
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
ros_ethercat
2
2
------------
3
3
4
+
## Overview
5
+
4
6
This is a reimplementation of the main loop of pr2_ethercat without dependencies on PR2 software. It was mainly developed to be used by Shadow Robot Company. It may be useful to anyone people that has developed ROS software for their own robot and used etherCAT for communication. Most likely such software would be based on the software for Willow Garage's PR2. ros_ethercat reuses existing etherCAT drivers (eml package) and instantiates a ros_control controller manager. Part of the software in this repository comes from repositories pr2_mechanism, pr2_robot, pr2_ethercat_drivers. The parts specific to the pr2 robot only have been removed. Therefore, the same license (BSD) has been used.
5
7
6
8
*pr2 packages no longer required*
@@ -15,12 +17,15 @@ ros_ethercat
15
17
8. pr2_mechanism_diagnostics
16
18
9. pr2_mechanism_model
17
19
20
+
You can find the architecture diagram below for a closer look at how this works.
21
+
22
+

18
23
19
-
**Compatibility**
24
+
## Compatibility
20
25
21
26
In software with previous pr2 dependencies that is switched to this package, the following modifications are required.
@@ -31,17 +36,16 @@ instead of<br>`class MyController : public pr2_controller_interface::Controller`
31
36
5. In `package.xml` file in export tag use `<controller_interface plugin="${prefix}/controller_plugins.xml"/>`
32
37
6. In `controller_plugins.xml` file use `base_class_type="controller_interface::ControllerBase" />`
33
38
34
-
*launch files*
39
+
### launch files
35
40
36
41
1. Replace `pr2_ethercat` with `ros_ethercat_loop` in launch files
37
42
2. Since pr2_controller_manager is no longer used, joint_states or mechanism_statistics are no longer published by it. Joint states are now published with the join_state_controller from ros_controllers. To start this controller this line need to be added in the main launch file <br> `<include file="$(find ros_ethercat_model)/launch/joint_state_publisher.launch"/>`
38
43
3.`calibrate.py` file from pr2_bringup is now included in ros_ethercat_model package and renamed to just `calibrate` according to ROS convention. Launch files that execute `calibrate.py` should be modified to find it there.
39
44
40
-
*transmissions*
45
+
### transmissions
41
46
42
47
Transmissions are still defined in urdf in the pr2 style and inherit from `ros_ethercat_model::Transmission`. This class will initialize the actuators associated with this transmission.
43
48
44
-
**New features**
49
+
## New features
45
50
1. ros_ethercat accepts a new argument `--period` which is the period of main ethercat loop in msec. If not given the default value is 1ms.
46
51
2. There is a helper bash script called ros_grant. This will grant to the ros_ethercat_loop executable the ability to be ran from a normal user without root privileges. E.g. of use<br>`rosrun ros_ethercat_loop ros_grant`
0 commit comments