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

erikjber's profile - activity

2014-01-28 17:21:51 -0500 marked best answer Reading bumper state from PR2

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?

2014-01-28 17:21:49 -0500 marked best answer Gazebo crashes when sensors are added to ShadowHand

After adding the following section to model/hand_urdf/thumb/thdistal.urdf.xacro in the sr_hand package Gazebo crashes during startup.

<gazebo reference="thdistal">
  <sensor:contact name="thdistal_contact_sensor">
    <geom>distal_collision_geom</geom>    
    <updateRate>100.0</updateRate>    
    <controller:gazebo_ros_bumper name="thdistal_gazebo_ros_bumper_controller" plugin="libgazebo_ros_bumper.so">
      <alwaysOn>true</alwaysOn>    
      <updateRate>100.0</updateRate> 
      <frameName>thdistal</frameName>  
      <bumperTopicName>thdistal_bumper</bumperTopicName>
      <interface:bumper name="thdistal_gazebo_ros_bumper_iface" />
    </controller:gazebo_ros_bumper>    
  </sensor:contact>
  <material>Gazebo/Grey</material>
</gazebo>

If I comment out the <geom> and the first <updaterate> tags Gazebo starts, but no contact messages are published.

All log files indicate that everything should be fine.

Any idea what I'm doing wrong?

2012-11-27 03:18:21 -0500 received badge  Famous Question (source)
2012-11-27 03:18:21 -0500 received badge  Notable Question (source)
2012-10-13 19:38:10 -0500 received badge  Famous Question (source)
2012-10-13 19:38:10 -0500 received badge  Notable Question (source)
2012-08-20 21:26:41 -0500 received badge  Famous Question (source)
2012-08-20 05:16:52 -0500 received badge  Famous Question (source)
2012-08-20 05:16:52 -0500 received badge  Notable Question (source)
2012-06-24 01:54:53 -0500 received badge  Notable Question (source)
2012-06-18 02:14:36 -0500 received badge  Popular Question (source)
2012-04-09 13:01:48 -0500 received badge  Popular Question (source)
2012-02-28 01:30:06 -0500 received badge  Popular Question (source)
2012-02-20 22:45:44 -0500 received badge  Popular Question (source)
2011-09-18 22:35:55 -0500 marked best answer Shadow simulator depends on non-existing libgazebo_ros_factory.so

Hi, Sorry about the delay in answering this thread.

Electric is not supported yet for the Gazebo simulation of our hardware (see this bug report). I'll try to fix this shortly.

Cheers,

Ugo

2011-09-16 01:05:15 -0500 commented answer Shadow simulator depends on non-existing libgazebo_ros_factory.so
Removed reference to plugin. Still crashes.
2011-09-16 01:04:01 -0500 commented answer Shadow simulator depends on non-existing libgazebo_ros_factory.so
I changed sr_hand/launch/gazebo_arm_and_hand_motor.launch. I also tried replacing the strings "shadowhand_motor" with "arm_and_hand_motor". Neither worked - gazebo crashes on or shortly after startup.
2011-09-14 20:02:00 -0500 commented question Shadow simulator depends on non-existing libgazebo_ros_factory.so
The empty example file included with Gazebo works fine: roslaunch gazebo_worlds empty_world.launch
2011-09-13 23:07:27 -0500 received badge  Editor (source)
2011-09-13 23:00:32 -0500 asked a question Shadow simulator depends on non-existing libgazebo_ros_factory.so

When starting Gazebo with the command "roslaunch sr_hand gazebo_arm_and_hand_motor.launch" I get this error:

/tmp/buildd/ros-electric-simulator-gazebo-1.4.3/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/controllers/ControllerFactory.cc:99 : Exception: Failed to load libgazebo_ros_factory.so: libgazebo_ros_factory.so: cannot open shared object file: No such file or directory

/tmp/buildd/ros-electric-simulator-gazebo-1.4.3/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/Simulator.cc:326 : Exception: Failed to load the World
/tmp/buildd/ros-electric-simulator-gazebo-1.4.3/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/controllers/ControllerFactory.cc:99 : Exception: Failed to load libgazebo_ros_factory.so: libgazebo_ros_factory.so: cannot open shared object file: No such file or directory


Error Loading Gazebo
/tmp/buildd/ros-electric-simulator-gazebo-1.4.3/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/Simulator.cc:326 : Exception: Failed to load the World
/tmp/buildd/ros-electric-simulator-gazebo-1.4.3/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/controllers/ControllerFactory.cc:99 : Exception: Failed to load libgazebo_ros_factory.so: libgazebo_ros_factory.so: cannot open shared object file: No such file or directory


failed to cleanly remove [/tmp/gazebo-ebd-0] : [Directory not empty]
[gazebo-2] process has died [pid 23426, exit code 255].
log files: /home/ebd/.ros/log/0c876ba2-dec0-11e0-8e01-0025b311be58/gazebo-2*.log                 

The promised log files are not created.

I checked ROS_ROOT/../stacks/simulator_gazebo/gazebo_plugins/lib, and the file libgazebo_ros_factory.so is there in diamondback, but not in electric.

2011-06-04 14:46:06 -0500 received badge  Taxonomist
2011-03-28 00:09:56 -0500 received badge  Self-Learner (source)
2011-03-28 00:09:56 -0500 received badge  Teacher (source)
2011-03-26 06:56:13 -0500 marked best answer Reading bumper state from PR2

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.

2011-03-25 00:54:00 -0500 answered a question Generating messages for rosjava?

Never mind, I just realised that all I have to do is remove dependencies on all packages that are no longer present in Diamondback.

2011-03-25 00:35:07 -0500 asked a question Generating messages for rosjava?

Platform: Diamondback, Ubuntu 10.10 64-bit.

I'm using rosjava, so I need to generate class files for all messages.

I tried using the rosjava_deps package (http://www.ros.org/wiki/rosjava_deps), but it depends on the genmsg_cpp package (http://www.ros.org/wiki/genmsg_cpp), which appears to be gone.

How do I auto-generate the message source or class files?

2011-03-22 22:21:26 -0500 commented answer Gazebo crashes when sensors are added to ShadowHand
That works! Thank you so very much!