jrostf2
CONTENT

Overview

jrostf2 is a Java module which allows to interact with TF2 in ROS (Robot Operating System).

It provides access to Buffer Server to calculate lookup transformation between the frames.

It is based on jrosclient module which is a Java client for ROS.

Supported ROS versions

ROS2

ROS1

Requirements

Usage examples

Request tf2_ros buffer_server to calculate lookup transformation from source "world" frame to target frame "panda_hand" frame.

ROS2

Code:

var client = new JRos2ClientFactory().createClient();
var tf2 = new JRos2Tf2Factory().createTf2Client(client);
var result = tf2.lookupTransform("world", "panda_hand");

ROS1

Code:

var client = new JRos1ClientFactory().createClient();
var tf2 = new JRos1Tf2Factory().createTf2Client(client);
var result = tf2.lookupTransform("world", "panda_hand");

Documentation

Links

Free Web Hosting