ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
3

Force torque sensor simulation

asked 2015-11-29 14:21:27 -0500

mrslvgg gravatar image

Hi all,

I'm trying to simulate a force sensor located at the tip of my robot. I'm using ros indigo with gazebo 2.2. I went through this and this tutorials and I was able to publish the contact state of a box model using libgazebo_ros_bumper.so.

What I'm interested in is to use a proper force sensor with the associated force controller. I didn't found any documentation about that in Gazebo Tutorials website and I'm asking in the case someone has had the some issue.

I also found this archive of ros_controllers in which there is a force_torque_sensor_controller but I don't know how to use it.

Thanks for your help!

edit retag flag offensive close merge delete

Comments

Hi, I am also interested to achieve something similar. Did you figure out how to realise it?

filipposanfilippo gravatar imagefilipposanfilippo ( 2016-05-14 05:20:54 -0500 )edit

I answered my question

mrslvgg gravatar imagemrslvgg ( 2016-05-14 07:40:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-05-14 07:40:12 -0500

mrslvgg gravatar image

updated 2016-06-17 03:33:13 -0500

I finally figure out how to do this. Basicly, I added the ft_sensor plugin to my urdf.

Following my code:

<gazebo reference="${name}_fixed_base_joint">
    <provideFeedback>true</provideFeedback>
</gazebo>

<!-- The ft_sensor plugin -->  
<gazebo>
    <plugin name="ft_sensor" filename="libgazebo_ros_ft_sensor.so">
        <updateRate>100.0</updateRate>
        <topicName>ft_sensor_topic</topicName>
        <jointName>schunk_wsg50_fixed_base_joint</jointName>
    </plugin>
</gazebo>

some remarks:

  • this plugin works with a joint, in my case "${name}_fixed_base_joint" is the name of the joint connecting the robot to the end-effector and it is fixed type
  • have look at the plugin implementation to figure out the reference frame in which the wrench is given

Hope this can help. :)

edit flag offensive delete link more

Comments

I always get an error that the joint I want to cope with does not exist. Did you have the same problem before? And can you tell me how you define the inertial parameters to get a right measurement? Thanks a lot!

mizu_lily gravatar imagemizu_lily ( 2016-06-17 01:11:26 -0500 )edit

Sounds like probably you misspelled the joint name in the URDF. Consider that in my example code the parameter name contains the string schunk_wsg50. To be sure, fill both gazebo reference, and jointName tags with the correct joint name. All the inertial parameters of my robot remained untouched.

mrslvgg gravatar imagemrslvgg ( 2016-06-17 03:43:22 -0500 )edit

What type of joint are you using?

SorinV gravatar imageSorinV ( 2017-07-20 09:08:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2015-11-29 14:21:27 -0500

Seen: 2,088 times

Last updated: Jun 17 '16