ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

vibek4989's profile - activity

2015-07-15 09:34:34 -0500 answered a question ROS DEPRECATED get_transforms_vec

Hello Akshay,

I have been working on it. What I found the solution is,

Change the whole section with the bellow section, it will works properly. Note: I am working on ROS groovy.

TransformG readTranform(const string & filename) {

boost::numeric::ublas::matrix<double> mat(4,4);

ifstream file((char*) filename.c_str(), ifstream::in);

string line;

int row = 0;

while(getline(file,line)){

    string e1;

    stringstream lineStream(line);

    int col = 0;

    while(getline(lineStream, e1, ',')){

        mat(row,col) = atof(e1.c_str());

            col +=1;

    }

    row += 1;

}

TransformG transG(mat);

return transG;

}

Have a look and let me know, If you still face any issue. Remember you might need to sort of changes in some other file too.