33 #include <Geometry/CoordinateTransform3D.hh>
34 #include <Geometry/Projection.hh>
35 #include <Utils/Param.hh>
41 void commandHelp(
char* argv) {
42 cout<<argv<<
" [options] <projection A > <projection B>\n";
46 int main(
int argc,
char* argv[])
50 bool* help = params.
AddParamBool(
"help",
"",
false,
'h');
61 if(A.
Load(argv[fup])!=0) {
62 cerr<<
"error loading projection A\n";
67 if(B.
Load(argv[fup+1])!=0) {
68 cerr<<
"error loading projection B\n";
74 Pose poseA, poseB, result, check;
84 cout<<
"calculating relative transformations between A and B:\n\n";
85 cout<<
"making A global: A*result = B :\n";
94 cout<<
"making B global: B*result = A :\n";
virtual int Load(const std::string &filename)
convenience wrapper which tries to read different formats
virtual const Pose & GetPose(unsigned int cam=0) const
return complete pose object.
bool * AddParamBool(const std::string &name, const std::string &help, bool deflt=false, char cmdshort=0, int Group=GRP_NOSHOW)
int ParseCommandLine(int &argc, char *argv[])
scan command line arguments for valid parameters
void Usage(std::ostream &os=std::cout)
print Help-Information to stdout
Represents 3d pose transformations, parametrized as Euclidean translation and unit quaternion orienta...
This class hides the underlying projection model, like projection matrix, spherical camera...
This class Param provides generic support for parameters.