Skip to content

Commit 7ef3aea

Browse files
committed
added diagram to the README.md
1 parent 31c6602 commit 7ef3aea

File tree

3 files changed

+2664
-6
lines changed

3 files changed

+2664
-6
lines changed

README.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
ros_ethercat
22
------------
33

4+
## Overview
5+
46
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.
57

68
*pr2 packages no longer required*
@@ -15,12 +17,15 @@ ros_ethercat
1517
8. pr2_mechanism_diagnostics
1618
9. pr2_mechanism_model
1719

20+
You can find the architecture diagram below for a closer look at how this works.
21+
22+
![Architecture Diagram](doc/RosEtherCAT.png)
1823

19-
**Compatibility**
24+
## Compatibility
2025

2126
In software with previous pr2 dependencies that is switched to this package, the following modifications are required.
2227

23-
*Controllers*
28+
### Controllers
2429

2530
1. `#include <controller_interface/controller.h>`<br>
2631
instead of<br>`#include <pr2_controller_interface/controller.h>`
@@ -31,17 +36,16 @@ instead of<br>`class MyController : public pr2_controller_interface::Controller`
3136
5. In `package.xml` file in export tag use `<controller_interface plugin="${prefix}/controller_plugins.xml"/>`
3237
6. In `controller_plugins.xml` file use `base_class_type="controller_interface::ControllerBase" />`
3338

34-
*launch files*
39+
### launch files
3540

3641
1. Replace `pr2_ethercat` with `ros_ethercat_loop` in launch files
3742
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"/>`
3843
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.
3944

40-
*transmissions*
45+
### transmissions
4146

4247
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.
4348

44-
**New features**
49+
## New features
4550
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.
4651
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`
47-

0 commit comments

Comments
 (0)