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

hannuaa's profile - activity

2021-07-07 03:18:59 -0500 received badge  Student (source)
2017-04-20 16:48:59 -0500 received badge  Famous Question (source)
2015-06-23 20:46:39 -0500 received badge  Famous Question (source)
2015-01-15 12:31:45 -0500 received badge  Notable Question (source)
2015-01-15 12:31:45 -0500 received badge  Popular Question (source)
2014-08-27 07:41:03 -0500 received badge  Notable Question (source)
2014-08-27 07:41:03 -0500 received badge  Famous Question (source)
2014-07-24 05:29:32 -0500 received badge  Famous Question (source)
2014-07-14 02:38:27 -0500 received badge  Notable Question (source)
2014-07-14 02:38:27 -0500 received badge  Popular Question (source)
2014-07-14 02:38:27 -0500 received badge  Notable Question (source)
2014-04-30 04:54:56 -0500 received badge  Popular Question (source)
2014-04-02 03:56:46 -0500 asked a question the controller can not subscribe to the topic from gazebo

Hi , everyone. Now, I add a contact sensor for the robot in xacro file, as follow:

<gazebo reference="${robot_name}left_lower_arm">
   <selfCollide>false</selfCollide>
   <sensor type="contact" name="left_lower_arm_contact_sensor">
      <update_rate>100.0</update_rate>
      <contact>
        <collision>${robot_name}left_lower_arm_geom</collision>
      </contact>

      <plugin name="left_lower_arm_gazebo_ros_bumper_controller" filename="libgazebo_ros_bumper.so">
        <alwaysOn>true</alwaysOn>
        <updateRate>100.0</updateRate>
        <bumperTopicName>${robot_name}left_lower_arm_contact</bumperTopicName>
      </plugin>
   </sensor>
   <material>PR2/Grey2</material>
</gazebo>

I can get the data of the contact sensor by typing "rostopic echo r2/left_lower_arm_contact". But when I program in the controller to get the sensor data, I get nothing. The program in the controller is as follow:

left_hand_contact_sub = node.subscribe("r2/left_lower_arm_contact", 10, &R2ImpedanceController::left_hand_contact, this);

My ROS is groovy.Any answer to these questions, or any suggestion is very welcome!

2014-03-25 20:24:11 -0500 received badge  Enthusiast
2014-03-25 04:32:34 -0500 asked a question Can I get force information in gazebo? and how?

Hello! I want to simulate the force control of robots using gazebo. But I don't know how to get the force information in gazebo. I can get the joint position and velocity by pr2_mechanism_model::RobotState. However, there is no function to get the joint effort. Thank you very much

2014-03-17 03:17:19 -0500 commented question How can I convert PointCloud2 to PointCloud?
2014-03-17 02:58:51 -0500 asked a question How can I convert PointCloud2 to PointCloud?

Hi ! I have some problems when I run a "laser-perception.launch" of PR2. The errors are:

Client [/point_cloud_assembler] wants topic /tilt_scan_cloud_filtered to have datatype/md5sum [**sensor_msgs/PointCloud**/d8e9c3f5afbdd8a130fd1d2763945fca], but our version has [sensor_msgs/PointCloud2/1158d486dd51d683ce2f1be655c3c181]. Dropping connection

and so is the topic /tilt_scan_cloud. The topics' type is sensor_msgs/PointCloud2.

So I think the solution is that PointCloud2 should be converted to PointCloud. But I don't know how convert PointCloud2 to PointCloud in a launch file. thank you so much.

2014-03-17 02:20:20 -0500 received badge  Popular Question (source)
2014-03-16 04:25:26 -0500 commented question About the collision map of PR2

i refer to the tutorials in "http://wiki.ros.org/motion_planning_environment/Tutorials/Making collision maps from self-filtered tilting laser data" .

2014-03-16 04:24:21 -0500 asked a question About the collision map of PR2

Hello! I have some problems when I try to get the collision map of PR2. The error is that "Client [/rviz_collision_tutorial_1] wants topic /tilt_scan_cloud_filtered to have datatype/md5sum [sensor_msgs/PointCloud/d8e9c3f5afbdd8a130fd1d2763945fca], but our version has [sensor_msgs/PointCloud2/1158d486dd51d683ce2f1be655c3c181]. Dropping connection." My ROS is fuerte. Thank you so much.