Where is contact sensor plugin data going?
I have created a contact sensor plug-in for gazebo as explained by the tutorials on the gazebo site. What I don't understand is how to access the data it collects. I would like to read the force data and put it into a text file to do some analysis on but I do not know how to access it. Any help?
I am using ubuntu indigo 14.04 and gazebo 4.04
Asked by imakething on 2017-03-02 09:10:57 UTC
Answers
Maybe this version of ContactPlugin code will be helpful here. There is a line in there that shows how to print out normal force data.
Asked by iche033 on 2017-03-03 12:27:17 UTC
Comments
So i took a look at the ContacPlugin code and I see where it is supposed to be outputing the data but I again cannot find where it is going. I have tried opening a text file and outputing the data to the text file but it doesnt work and doesnt create a text file. Any ideas?
Asked by imakething on 2017-03-06 14:10:04 UTC
it prints to the console. You can modify it to output to file using std::ofstream.
Asked by iche033 on 2017-03-06 22:22:59 UTC
Comments