-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Sensor Data #168
Comments
Hi @MoritzN89, simulation of skin output is for sure a topic we are interested in (see #55 ), but unfortunately we didn't had the time to work on it. In a ideal scenario, you should add the "skin" sensor to Gazebo, and then write a gazebo plugin that implements a yarp driver for the simulated skin sensor. Unfortunately there is no "skin" sensor in Gazebo, so we should find a way for simulating taxel outputs. For simulating taxel outputs I can think of two strategies:
The first approach could lead to more physically accurate outputs, but is much more complex both in implementation and for simulation computation time. However the second method is much more simpler and should be ok for most of the use cases. Which kind of application you have in mind for skin simulation? |
Thank you for the answer. We need the skin data for improving the balancing of the iCub. So we want to couple it with the balancing controller. |
We now decided to use one approach. To fulfill that we have to create own blocks in the Simulink library for our own sensors. I watched at the masks of the provided bocks but dont understand it completely. So how can we do that? |
I don't get how you decided to publish the sensor information to YARP from
|
I want to create a new sensor on the icub.sdf and put the force/torque plugin in there. Then I want to read it in Simulink and get the outputs, if that can be done that easily. I tried to use the yarp read block on a existing torque sensor for testing but I get no output, maybe because I have to replace something in the 'To' parameter like on the picture attached? But I dont know what to replace. |
To see if you properly read something? |
I get no output from the yarp read command, yarp cant find the port. This is the output for yarp name list: registration name /icubGazeboSim/applyExternalWrench/rpc:i ip 130.83.116.6 port 10039 type tcp |
Sorry, which kind of sensor are you trying to read? Joint torques? |
I want to read the joint torques |
Joint torque information is published by the |
I tried it but I dont find the ports on stateExt:o for torques, only for example /icubGazeboSim/torso/stateExt:o. If I now want to create own force and torque sensors on a own sensor (e.g. a block around a link or a link itself) how can I proceed? How can I add an own port in yarp and send the data correctly from gazebo to yarp? |
Ok, I am afraid we are confusing two different sensors: The |
Ok so what is if we want to e.g. place several hundreds of force_torque sensors on the iCub, is there a way to do it? |
Please note (for example from SDF documentation: http://sdformat.org/spec?ver=1.5&elem=sensor#sensor_force_torque ) that the force torque sensors is just reading the force/torque transmitted through a joint (that is connecting two links). What do you mean by "place several hundreds of force_torque sensors on the iCub"? |
I guess that he means skin sensors, not FTS. |
Skin taxel simulation is an open issue (#55) in gazebo-yarp-plugins, for more information check my first comment: #168 (comment) . |
Closing, further discussion for integration of @MoritzN89 code can be done in #55 . |
Hello,
as I have understood gazebo-yarp gets only the torque/force sensors of e.g. the arms,feets and legs, is that correct? We now want to simulate the skin in gazebo. So we have to add manually new sensors in the gazebo model? Our question is now how to do get the skin data from gazebo best after we have added some new sensors (create an own interface or adapt the yarp plugin?).
Greetings,
Moritz
The text was updated successfully, but these errors were encountered: