mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 17:49:33 +00:00
Add forgotten file
This commit is contained in:
parent
d2296fea76
commit
46ba00fca7
14
gazebo/util.h
Normal file
14
gazebo/util.h
Normal file
@ -0,0 +1,14 @@
|
||||
#include <ignition/math/Vector3.hh>
|
||||
#include <ignition/math/Pose3.hh>
|
||||
|
||||
using ignition::math::Vector3d;
|
||||
using ignition::math::Pose3d;
|
||||
|
||||
Pose3d flu2frd(const Pose3d& p) {
|
||||
return ignition::math::Pose3d(p.Pos().X(), -p.Pos().Y(), -p.Pos().Z(),
|
||||
p.Rot().W(), p.Rot().X(), -p.Rot().Y(), -p.Rot().Z());
|
||||
}
|
||||
|
||||
Vector flu2frd(const Vector3d& v) {
|
||||
return Vector(v.X(), -v.Y(), -v.Z());
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user