AUV-Coop-Assembly
Master Thesis for Robotics Engineering. Cooperative peg-in-hole assembly with two underwater vehicles guided by vision
worldInterface.h
1 #ifndef WORLDINTERFACE_H
2 #define WORLDINTERFACE_H
3 
4 #include <ros/ros.h>
5 #include <tf/transform_listener.h>
6 #include <string>
7 
8 #include "../../support/header/conversions.h"
9 
16 {
17 public:
22  WorldInterface(std::string callerName);
23  int waitReady(std::string objName);
24  int waitReady(std::string firstFrame, std::string secondFrame);
25 
26 
27  int getwT(Eigen::Matrix4d *wTobj, std::string objName);
28  int getT(Eigen::Matrix4d* xTx_eigen, std::string firstFrame, std::string secondFrame);
29  int getwPos(Eigen::Vector3d* pos, std::string robotName);
30 
31 
32 
33 private:
34  std::string callerName;
35  tf::TransformListener tfListener;
36 
37 };
38 
39 #endif // WORLDINTERFACE_H
The WorldInterface class to get position from world to anything else.
WorldInterface(std::string callerName)
WorldInterface.