#include "ViconDriver.hpp"
#include <iostream>
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 6 of file DriverTest.cpp.
10 std::cout <<
"usage: DriverTest hostname subject segment" << std::endl;
15 if( !driver.
connect( std::string(argv[1]) ) )
17 std::cout <<
"could not connect to host " << argv[1] << std::endl;
21 std::string subject( argv[2] );
22 std::string segment( argv[3] );
27 std::cout <<
"got frame at " << driver.
getTimestamp() << std::endl;
28 std::cout <<
"transform: " << std::endl
30 if ( !is_there ) std::cout <<
"object is occluded!" << std::endl;
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))
base::Time getTimestamp()