Robotics StackExchange | Archived questions

How to generate large number of random particles which are continually moving in to one direction for collision detection

Hi ,

I am using gazebo + Ros (melodic) + URDF for my robot. I have created a contact sensor as below. Now I need to generate huge number of random particles (like small bubbles) which are continuously moving towards my robot. (without effect of the gravity) and get the hit count for a given time

Is there any way to generate these particles? Please help here

My code

  <gazebo reference="head__link_LP">
    <sensor name="lp_contactsensor_sensor" type="contact">
      <always_on>true</always_on>
      <contact>
        <collision>head__link_LP_fixed_joint_lump__LP_col_collision</collision>
      </contact>
      <plugin filename="libgazebo_ros_bumper.so" name="left_arm_fist_plugin">
        <bumperTopicName>left_arm_fist_contact</bumperTopicName>
        <frameName>head__link_LP</frameName>
      </plugin>
    </sensor>
  </gazebo>

Asked by sajithsam on 2018-10-08 22:55:25 UTC

Comments

I would suggest to ask this over at Gazebo Answers, as it's more a simulation issue right now than something to do with ROS per se.

If you do post there, please post a link here to the new question so we keep things connected.

Asked by gvdhoorn on 2018-10-09 02:23:48 UTC

Answers