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.
Request tf2_ros buffer_server to calculate lookup transformation from source "world" frame to target frame "panda_hand" frame.
Code:
var client = new JRos2ClientFactory().createClient(); var tf2 = new JRos2Tf2Factory().createTf2Client(client); var result = tf2.lookupTransform("world", "panda_hand");
Code:
var client = new JRos1ClientFactory().createClient(); var tf2 = new JRos1Tf2Factory().createTf2Client(client); var result = tf2.lookupTransform("world", "panda_hand");