Home | Tutorials | Wiki | Issues
Ask Your Question
0

Where is contact sensor plugin data going?

asked 2017-03-02 08:10:57 -0500

imakething gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-03-03 11:27:17 -0500

iche033 gravatar image

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.

edit flag offensive delete link more

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?

imakething gravatar imageimakething ( 2017-03-06 13:10:04 -0500 )edit

it prints to the console. You can modify it to output to file using std::ofstream.

iche033 gravatar imageiche033 ( 2017-03-06 21:22:59 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-03-02 08:10:57 -0500

Seen: 100 times

Last updated: Mar 03