No version for distro humble. Known supported distros are highlighted in the buttons above.
No version for distro iron. Known supported distros are highlighted in the buttons above.
No version for distro rolling. Known supported distros are highlighted in the buttons above.
No version for distro noetic. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro eloquent. Known supported distros are highlighted in the buttons above.
No version for distro dashing. Known supported distros are highlighted in the buttons above.
No version for distro galactic. Known supported distros are highlighted in the buttons above.
No version for distro foxy. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.

ihmc_ros_control package from ihmc-ros-control repo

ihmc_ros_control

Package Summary

Tags No category tags.
Version 0.6.0
License Apache 2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ihmcrobotics/ihmc-ros-control.git
VCS Type git
VCS Version develop
Last Updated 2023-06-14
Dev Status DEVELOPED
CI status Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

This package provides facilities for using IHMC Java software as a ros_control compatible controller through native libraries

Additional Links

Maintainers

  • Jesper Smith
  • Doug Stephen

Authors

  • Jesper Smith
  • Doug Stephen

IHMC ROS Control Support

Provides a bridge between Java and ROS Control. The simple interface, ihmc_ros_control::IHMCRosControlJavaBridge and the similarly named Java interface, provides a way to write controllers that operate on the resources exposed by ros_control's hardware_interface::EffortJointInterface. ihmc_ros_control::IHMCWholeRobotControlJavaBridge is an extension of the base interface and allows for implementing a ros_control controller that hooks in to the initRequest method to acquire resources of multiple types in a single ROS plugin. Currently, you can use this interface to write controllers that work with all of the following simultaneously:

  • hardware_interface::JointStateInterface
  • hardware_interface::EffortJointInterface
  • hardware_interface::PositionJointInterface
  • hardware_interface::ImuSensorInterface
  • hardware_interface::ForceTorqueSensorInterface

Installation

ihmc_ros_control is a Catkin package. We currently support ROS Indigo on Ubuntu 14.04 LTS with release 0.5.0 and ROS Kinetic on Ubuntu 16.04 LTS with release 0.6.0. We plan to continue targeting LTS releases of both ROS and Ubuntu.

We use some C++11 features in ihmc_ros_control. The versions of gcc and clang available in Ubuntu 14.04 should be fine, and we have modified our CMakeLists.txt accordingly to set up the C++11 features correctly. You will also need a Java JDK (not JRE), as you will need the Java Native Interface headers to compile the C++ code. We support OpenJDK 8 and Oracle JDK 8.

On Ubuntu 16.04:

$ sudo apt-get update
$ sudo apt-get install openjdk-8-jdk

Ubuntu 14.04 may require tapping a PPA: https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa

To install ihmc-ros-control, simply clone the repository in to a catkin workspace and then catkin_make install or catkin build && catkin install if using catkin_tools. If you have an existing catkin workspace, we recommend "overlaying" any IHMC code on top of your code in its own workspace, e.g. ihmc_catkin_ws. If you don't currently have any IHMC code, that might look something like:

$ cd ~
$ mkdir -p ihmc_catkin_ws/src
$ cd ihmc_catkin_ws
$ catkin_init_workspace src
$ cd src
$ # use https://github.com/ihmcrobotics/ihmc-ros-control.git if you don't have ssh keys configured on GitHub
$ git clone git@github.com:ihmcrobotics/ihmc-ros-control.git
$ cd ..
$ catkin_make install

You may also be interested in ihmc_workspaces which provides ways to get at other IHMC ROS packages.

CMake JNI Errors

If CMake has problems finding the JNI packages or if there are Java/JNI related compilation problems during catkin_make, export JAVA_HOME before running catkin_make:

$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/

Writing controllers (Java)

IHMCRosControl is provided as a Maven artifact on Bintray: https://bintray.com/ihmcrobotics/maven-release/IHMCRosControl. You can find instructions for depending on our Maven artifacts at Bintray.

As a quick example, to use IHMCRosControl in a Gradle project:

  • Add the following repository to your buildscript:
repositories {
    maven {
        url  "http://dl.bintray.com/ihmcrobotics/maven-release"
    }
}

  • Add the following dependency to your gradle dependencies:
compile group: 'us.ihmc', name: 'IHMCRosControl', version: '0.6.0'

Then implement either "IHMCRosControlJavaBridge" or "IHMCWholeRobotControlJavaBridge", depending on which hardware interfaces you would like to control.

Examples

This package provides an example launch file for controlling the RRBot Gazebo demo via the simple EffortJointInterface adapter. For more complex examples, including an example of the Whole Robot interface, take a look at the Valkyrie project in IHMC Open Robotics Software along with the ihmc_valkyrie_ros ROS package for launch files.

CHANGELOG

0.5.0

Backwards incompatible change to library internals; the IMUHandle implementation now assumes the buffer is ordered in "xyzw" layout instead of "wxyz" layout. This is to keep with the convention that Eigen uses with quaternions, given its popularity.

0.4.0

This is the first edition of the changelog. For a detailed overview of existing features, please check README.md

Features:

  • "Whole Robot" controllers can now access JointStateHandles in addition to the existing

Breaking Changes:

  • NativeJointHandleHolder now inherits from NativeJointStateHandleHolder to mimic the way that JointHandleHolders extend from JointStateHandles in ROS Control.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

Name
java

Dependant Packages

No known dependants.

Messages

No message files found.

Services

No service files found

Recent questions tagged ihmc_ros_control at Robotics Stack Exchange

No version for distro hydro. Known supported distros are highlighted in the buttons above.
No version for distro kinetic. Known supported distros are highlighted in the buttons above.
No version for distro melodic. Known supported distros are highlighted in the buttons above.