Hi, All, I am working on add a contact sensor on a link, and I want to get the torque of the joint of this link, now I meet some question:
msgs::contacts
contacts, the order, I cannot find the member function 'contacts' of msgs, where can find the definition ofmsgs::contacts
, and what type Variable is the contacts ? and how can I use its member function or events?when I use the
function:unsigned int c = parentSensor->GetCollisionContactCount(const string&test_collision3)
an error will appear:
ContactPlugin.cc:56:57: error: expected primary-expression before ‘const’
how to solved it? and other function including const
appear this error too.
I want to input the data of sensor in a
.txt
file, how can I do it?where can the document define the relationship between the sensor
plugin.so
and theplugin.cc
, inCMakelist.txt
or in the.world
file? because I want to add 3 contact sensors to 3 links, so the plugins must be Distinguished.
thanks a lot
best gdlu
Originally posted by lugd1229 on Gazebo Answers with karma: 75 on 2013-02-01
Post score: 0
Original comments
Comment by hsu on 2013-02-06:
please post your code in your question. thanks.