ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

gordon's profile - activity

2020-10-16 01:38:32 -0500 received badge  Famous Question (source)
2019-01-14 14:31:13 -0500 received badge  Notable Question (source)
2019-01-14 14:31:13 -0500 received badge  Popular Question (source)
2018-05-30 20:31:59 -0500 edited question Raytracing for a camera plugin in Gazebo

Raytracing for a camera plugin in Gazebo I have a camera model in ROS Gazebo world. I created it by following the tutori

2018-05-30 20:29:33 -0500 asked a question Raytracing for a camera plugin in Gazebo

Raytracing for a camera plugin in Gazebo I have a camera model in Gazebo world. I created it by following the tutorials

2013-05-06 22:46:55 -0500 received badge  Famous Question (source)
2013-03-17 22:31:44 -0500 received badge  Famous Question (source)
2013-02-22 22:02:14 -0500 received badge  Notable Question (source)
2013-01-26 18:06:46 -0500 received badge  Popular Question (source)
2013-01-11 07:59:40 -0500 commented answer Not able to read data from contact sensor - gazebo

@prasanna.kumar Thanks, it worked. How silly of me!

2013-01-10 19:25:26 -0500 received badge  Student (source)
2013-01-10 06:24:28 -0500 received badge  Notable Question (source)
2013-01-09 21:07:56 -0500 asked a question Not able to read data from contact sensor - gazebo

Hi, I am new to ROS and gazebo. I have created a world in gazebo and I have added a contact sensor to it. I created the sensor going through this tutorial http://www.ros.org/wiki/urdf/Tutorials/UnderstandingPR2URDFGazeboExtension. This is the code I used

<?xml version="1.0"?>
<robot xmlns:sensor="http://playerstage.sourceforge.net/gazebo/xmlschema/#sensor"
       xmlns:controller="http://playerstage.sourceforge.net/gazebo/xmlschema/#controller"
       xmlns:interface="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface"
       xmlns:xacro="http://ros.org/wiki/xacro"
       name="sensorc">

<link name="sensor">
     <inertial>
      <origin xyz="-1 -1 0.5" rpy="0 0 0" /> 
      <mass value="10.0" />
      <inertia  ixx="1.0" ixy="0.0"  ixz="0.0"  iyy="100.0"  iyz="0.0"  izz="1.0" />
    </inertial>
    <visual>
      <origin xyz="-1 -1 0.5" rpy="0 0 0" /> 
      <geometry>
        <box size="1 1 1" />
      </geometry>
    </visual>
    <collision>
     <origin xyz="-1 -1 0.5" rpy="0 0 0" /> 
      <geometry>
       <box size="1 1 1" />
      </geometry>
    </collision>
  </link>
  <gazebo reference="sensor">
    <material>Gazebo/White</material>    
  </gazebo>

<gazebo reference="sensor">
      <selfCollide>true</selfCollide>
      <sensor:contact name="contact_sensor">
        <geom>sensor_link_geom</geom>
        <updateRate>100.0</updateRate>
        <controller:gazebo_ros_bumper name="gazebo_ros_bumper_controller" plugin="libgazebo_ros_bumper.so">
          <alwaysOn>true</alwaysOn>
          <updateRate>100.0</updateRate>
          <bumperTopicName>contact_bumper</bumperTopicName>
          <interface:bumper name="contact_bumper_iface" />
        </controller:gazebo_ros_bumper>
      </sensor:contact>
    </gazebo>
</robot>

And I run the turtlebot simulator and dash the turtlebot against the "sensor". Now I run rostopic echo /contact_bumper/state I get this

header: 
  seq: 31066
  stamp: 
    secs: 458
    nsecs: 186000000
  frame_id: world
states: []

I don't get why I am not getting the contact information i.e force and body name. Is there a mistake I am doing ?

2013-01-09 18:51:58 -0500 answered a question Adding sensors to gazebo - from scratch

This is the code I used

<?xml version="1.0"?>
<robot xmlns:sensor="http://playerstage.sourceforge.net/gazebo/xmlschema/#sensor"
       xmlns:controller="http://playerstage.sourceforge.net/gazebo/xmlschema/#controller"
       xmlns:interface="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface"
       xmlns:xacro="http://ros.org/wiki/xacro"
       name="sensorc">

<link name="sensor">
     <inertial>
      <origin xyz="-1 -1 0.5" rpy="0 0 0" /> 
      <mass value="10.0" />
      <inertia  ixx="1.0" ixy="0.0"  ixz="0.0"  iyy="100.0"  iyz="0.0"  izz="1.0" />
    </inertial>
    <visual>
      <origin xyz="-1 -1 0.5" rpy="0 0 0" /> 
      <geometry>
        <box size="1 1 1" />
      </geometry>
    </visual>
    <collision>
     <origin xyz="-1 -1 0.5" rpy="0 0 0" /> 
      <geometry>
       <box size="1 1 1" />
      </geometry>
    </collision>
  </link>
  <gazebo reference="sensor">
    <material>Gazebo/White</material>    
  </gazebo>

<gazebo reference="sensor">
      <selfCollide>true</selfCollide>
      <sensor:contact name="contact_sensor">
        <parent link="sensor"/>
        <updateRate>100.0</updateRate>
        <controller:gazebo_ros_bumper name="gazebo_ros_bumper_controller" plugin="libgazebo_ros_bumper.so">
          <alwaysOn>true</alwaysOn>
          <updateRate>100.0</updateRate>
          <bumperTopicName>contact_bumper</bumperTopicName>
          <interface:bumper name="contact_bumper_iface" />
        </controller:gazebo_ros_bumper>
      </sensor:contact>
    </gazebo>
</robot>

And I run the turtlebot simulator and dash the turtlebot against the "sensor". Now I run rostopic echo /contact_bumper/state I get this

header: 
  seq: 31066
  stamp: 
    secs: 458
    nsecs: 186000000
  frame_id: world
states: []

I don't get why I am not getting the contact information i.e force and body name. Is there a mistake I am doing ?

2013-01-09 06:48:34 -0500 received badge  Popular Question (source)
2013-01-08 23:05:11 -0500 asked a question Adding sensors to gazebo - from scratch

Hi,

I am new to ROS and gazebo. I have created a world in gazebo and now I wish to add few contact sensors to it. Can someone please tell me how to add a sensor to the world and give a sample xml code if possible ?

2012-08-08 10:35:17 -0500 received badge  Teacher (source)
2012-08-08 10:22:26 -0500 answered a question Joint does not stop sliding

You can apply an opposite force instead of clearing the joint effort. I hope this helps!

2012-08-08 10:17:42 -0500 received badge  Supporter (source)