Skip to content

Latest commit

 

History

78 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: GPL v3

FANUC ROS2 Drivers

Release 0.1.1


Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. License
  6. Contact

About The Project

ROS2 Solution for FANUC robots

(back to top)

Built With

  • Python

(back to top)

Getting Started

Prerequisites

  • ROS2 Jazzy (or Humble)
  • Python 3 and pip
  • catkin_pkg (required for ROS2 build system)
    sudo apt install python3-catkin-pkg python3-rosdep
  • Put Fanuc TP programs on controller
    • 'ros2_eip_back.tp' needs to be running in the background
    • 'ros2_eip_mainv2.tp' runs in the foreground when you want to use ROS

Installation (Linux)

Create a ROS2 Workspace

  1. Source ROS2 Environment (use jazzy or humble depending on your installation)
    source /opt/ros/jazzy/setup.bash

Optionally, you can also run the following command to add it to your .bashrc file:

echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc
  1. Create a new directory

    mkdir -p ~/ros2_ws/
    cd ~/ros2_ws/
  2. Clone repo

    git clone https://github.com/UofI-CDACS/fanuc_ros2_drivers/ --branch v1.1
  3. Initialize rosdep (first time only)

    sudo rosdep init
    rosdep update
  4. Resolve Dependencies (use jazzy or humble to match your ROS2 version)

    rosdep install -i --from-path src --rosdistro jazzy -y

    Note: pycomm3 may need to be installed separately (handle this yourself via some sort of venv management):

    pip3 install pycomm3
  5. Build the workspace with colcon

    colcon build

    Full guide here: ROS2 Humble Documentation

    Installation Complete

(back to top)

Usage

Running Nodes (Server)

  1. Open new terminal and go to workspace
  2. Source overlay (after building workspace):
    source install/setup.sh
  3. Run launch
    ros2 launch launch/start.launch.py robot_name:=NAME_OF_ROBOT robot_ip:=0.0.0.0 # Parameters must be formated this way or the command will give you an error
  • This script only works for one robot. If you need to start more than 1 robot, this should be done in mulitple terminals. (WIP)

Using Nodes (Client)

  1. Open new terminal and go to workspace
  2. Source overlay
    source install/setup.sh
  3. Start using!
    • run a regular python file
    • see tests/ for examples

Note: You will always need to source the overlay for each new terminal you open

For more examples, please refer to the Documentation

(back to top)

Roadmap

  • More ROS2 Packages

See the open issues for a full list of proposed features (and known issues).

(back to top)

License

Distributed under the GNU General Public License v3. See LICENSE.txt for more information.

(back to top)

Contact

Project Link: https://github.com/UniversityOfIdahoCDACS/FANUC-ROS2_Drivers

(back to top)

About

ROS2 Drivers for FANUC

Resources

Stars

54 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages