Skip to content

ami-iit/yarp-device-ethercat-cia402

Repository files navigation

yarp-device-ethercat-CiA402 🚀

Overview 🌟

This repository provides a YARP device plugin for EtherCAT CiA402 drives.

Compilation 🛠️

Prerequisites 📋

Ensure the following dependencies are installed:

Note: This device has been tested only on Linux systems.

Build Steps 🧩

  1. Clone the repository:

    git clone https://github.com/your-repo/yarp-device-ethercat-cia402.git
    cd yarp-device-ethercat-cia402
  2. Create a build directory and navigate into it:

    mkdir build && cd build
  3. Configure the project with CMake:

    cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/path/to/install
  4. Build the project:

    make
  5. Install the plugin:

    make install

Usage 🚀

Running the Plugin 🏃‍♂️

After building the project, the plugin can be loaded into a YARP-based application. Make sure the YARP_DATA_DIRS environment variable includes the path to the plugin's configuration files:

export YARP_DATA_DIRS=/path/to/install:$YARP_DATA_DIRS

Configuration ⚙️

The plugin requires a configuration file defining the EtherCAT network and device parameters. An example can be found at: config/robot/template_1_motor/config.xml

Setting Up yarprobotinterface 🛠️

To ensure that the yarprobotinterface binary has the correct permissions and can locate its dependencies, execute:

patchelf --add-rpath $(dirname $(dirname $(which yarprobotinterface)))/lib $(which yarprobotinterface)
sudo setcap cap_net_raw,cap_net_admin+ep $(which yarprobotinterface)

Example 💡

To run the plugin with a specific configuration:

yarprobotinterface --config config/robot/template_1_motor/config.xml

Supported Drives 🛠️

This plugin has been primarily tested with Synapticon drives. While it may be compatible with other EtherCAT drive models or manufacturers, some modifications might be necessary to ensure proper functionality. This is due to the plugin’s use of a custom Process Data Object (PDO) mapping, which extends beyond the standard CiA402 specification.

If you're looking to adapt the plugin for different hardware, we encourage you to open an issue or contribute improvements.

Additional notes 📝

For more details, see:

License 📜

This project is licensed under the BSD-3-Clause License. See the LICENSE file for details.

About

YARP device plugin for EtherCAT CiA402 drives

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •