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

Reading bumper state from PR2

asked 2011-03-10 00:07:15 -0500

erikjber gravatar image

updated 2021-09-27 09:00:39 -0500

lucasw gravatar image

System: Ubuntu 10.10, kernel 2.6.35-27, 64 bit.
ROS: Latest diamondback from the repositories.

I'm following the PR2 tutorial here:
http://www.ros.org/wiki/pr2_simulator/Tutorials/BasicPR2Controls

Everything works fine, I'm mostly interested in the gripper and I can open and close it using rostopic.

What I can't do is read the state of the bumper: when I execute rostopic echo l_gripper_l_finger_bumper/state I get the following error message:

WARNING: no messages received and simulated time is active.
Is /clock being published?

Executing rostopic echo /clock indicates that the clock is indeed being published.

Has anyone else gotten the bumper plugin to work? Any hints/tips?

edit retag flag offensive close merge delete

Comments

I can't find any reference to "bumper" on that page what makes you think that topic is being publshed?
tfoote gravatar image tfoote  ( 2011-03-10 13:01:39 -0500 )edit
I thought that since it is defined in the relevant .urdf.xarco and since the topic appears, it would be. But I see that I'm wrong. How can I enable the topic?
erikjber gravatar image erikjber  ( 2011-03-14 22:33:27 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-03-25 06:46:43 -0500

hsu gravatar image

Hi, The plugin was not publishing if no contacts exists for the referenced body. I patched the plugin so bumper publishes regardless it is in contact or not, please see https://code.ros.org/trac/ros-pkg/ticket/4872">ticket #4872 and https://code.ros.org/trac/ros-pkg/changeset/36417">patch.

sorry for the confusion.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2011-03-10 00:07:15 -0500

Seen: 1,312 times

Last updated: Mar 25 '11