Gazebo | Ignition | Community
Ask Your Question
1

How to visualize contact forces?

asked 2013-02-17 18:34:44 -0600

Boris gravatar image

Is there anything in API that can visualize the contact forces from contact sensor? If not then how it can be implemented? Basically all I need is to show an axis similar to the ones used with joints.

Also, would it be possible to extend context menu with system GUI plugin to toggle such visualization?

Thanks in advance,

Boris

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-02-21 19:21:29 -0600

updated 2013-02-21 19:23:23 -0600

Well I don't know if the code below can help you, but maybe serves as a start point to solve your question.

myplugin.h

myplugin.cpp

contact.world

The code is a proof of concept about using contact visuals passing by messages. Probably you should collect information about contact using the sensor and fill correctly the message fields.

You may enable "Contacts" in menu "View". I am using Gazebo 1.4 (compiled from source).

Contact

I hope that it helps you.

edit flag offensive delete link more

Comments

That's it. I keep forgetting about existence of main menu in Ubuntu. Thanks!

Boris gravatar imageBoris ( 2013-02-21 23:21:59 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2013-02-17 18:34:44 -0600

Seen: 40,786 times

Last updated: Feb 21 '13