1 #ifndef __VICON_DRIVER_HPP__ 2 #define __VICON_DRIVER_HPP__ 5 #include <base/Time.hpp> 6 #include <base/Eigen.hpp> 9 #include <boost/shared_ptr.hpp> 13 #include <Eigen/Geometry> 46 bool connect(
const std::string& hostname,
const unsigned int port = 801 );
65 bool getFrame(
const base::Time& timeout = base::Time::fromSeconds(1.0) );
81 Eigen::Affine3d
getSegmentTransform(
const std::string& subjectName,
const std::string& segmentName,
bool& inFrame);
84 Eigen::Affine3d
getSegmentTransform(
const std::string& subjectName,
const std::string& segmentName) {
101 void getAxesDir (
int& x_dir,
int& y_dir,
int& z_dir );
106 void setAxesDir (
int x_dir,
int y_dir,
int z_dir );
109 boost::shared_ptr<DriverImpl> impl;
void setAxesDir(int x_dir, int y_dir, int z_dir)
Set axes directions.
GetResult getLastResult()
void getAxesDir(int &x_dir, int &y_dir, int &z_dir)
Get axes direction.
Eigen::Affine3d getSegmentTransform(const std::string &subjectName, const std::string &segmentName)
Eigen::Affine3d getSegmentTransform(const std::string &subjectName, const std::string &segmentName, bool &inFrame)
bool connect(const std::string &hostname, const unsigned int port=801)
bool getFrame(const base::Time &timeout=base::Time::fromSeconds(1.0))
std::vector< base::Vector3d > getUnlabeledMarkers()
base::Time getTimestamp()