Ask Your Question
0

How to invert a geometry_msgs::Transform in C++?

asked 2019-11-20 03:36:41 -0600

Rufus gravatar image

updated 2019-11-20 03:43:48 -0600

Given a geometry_msgs::Transform not obtained through tf, how can I obtain the inverse of this transform?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-11-20 03:50:12 -0600

Rufus gravatar image

updated 2019-11-20 03:50:58 -0600

```

tf::Transform transform;
tf::transformMsgToTF(transform_msg, transform);
geometry_msgs::Transform inverted_transform_msg;
tf::transformTFToMsg(transform.inverse(), inverted_transform_msg)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-11-20 03:36:41 -0600

Seen: 24 times

Last updated: Nov 20