4 #include <openrave/openrave.h>
9 namespace rbd = RigidBodyDynamics;
10 namespace rbdmath = RigidBodyDynamics::Math;
12 TRAJOPT_API Eigen::Matrix3d toMatrix3d(
const OpenRAVE::TransformMatrix& tm);
14 TRAJOPT_API rbdmath::SpatialTransform toSpatialTransform(
const OpenRAVE::Transform& T);
16 inline OpenRAVE::Vector toRave(
const Eigen::Vector3d& v) {
17 return OpenRAVE::Vector(v[0], v[1], v[2]);
20 TRAJOPT_API OpenRAVE::Transform toRave(
const rbdmath::SpatialTransform& T);
22 typedef std::map<OpenRAVE::KinBody::LinkPtr, unsigned> Link2ID;
23 TRAJOPT_API boost::shared_ptr<rbd::Model> MakeRBDLModel(OpenRAVE::RobotBasePtr robot,
bool floating_base, Link2ID& link2id);