Skip to content

Commit 151f9b2

Browse files
authored
Merge pull request #90 from adamantivm/fix-extrinsics
Fix TF error due to inprecise quaternion
2 parents d143e4d + 1b89c46 commit 151f9b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tangobot_app/app/src/main/java/com/ekumen/tangobot/nodes/DefaultRobotTfPublisherNode.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class DefaultRobotTfPublisherNode extends ExtrinsicsTfPublisherNode {
3838
// in the Tangobot wiki: http://wiki.ros.org/tangobot/tutorials/kinetic/hardware%20setup
3939
public static final Transform TRANSFORM_PHAB2PRO = new Transform(
4040
new Vector3(0, -0.05, 0.1),
41-
new Quaternion(0, 0.707, 0, 0.707));
41+
new Quaternion(0, Math.sqrt(2)/2.0, 0, Math.sqrt(2)/2.0));
4242

4343
// Identity transform, only for debugging and error cases.
4444
public static final Transform TRANSFORM_IDENTITY = new Transform(

0 commit comments

Comments
 (0)