JenniferBuehler / gazebo-pkgs

A collection of tools and plugins for Gazebo
BSD 3-Clause "New" or "Revised" License
207 stars 104 forks source link

Failed to call service /gazebo_objects/get_info #7

Closed odysseusPolytropos closed 7 years ago

odysseusPolytropos commented 8 years ago

Hello,

I'm trying to tinker around with the fake_object_recognition and tried to execute the tutorial . Until step 3 (spawning the cube) everything works perfectly. At step 4 I get this error:

rosuser@computer ~/test_jaco $ rosrun gazebo_state_plugins gazebo_request_object_info cube1 [ INFO] [1479977436.038761419]: Got objects topic name: </gazebo_objects/get_info> [ERROR] [1479977436.039658131]: Failed to call service /gazebo_objects/get_info, success flag: 0

Actually the service is not running: rosuser@computer ~/test_jaco $ rosservice list /fake_object_recognizer/get_loggers /fake_object_recognizer/set_logger_level /gazebo/apply_body_wrench /gazebo/apply_joint_effort /gazebo/clear_body_wrenches /gazebo/clear_joint_forces /gazebo/delete_model /gazebo/get_joint_properties /gazebo/get_link_properties /gazebo/get_link_state /gazebo/get_loggers /gazebo/get_model_properties /gazebo/get_model_state /gazebo/get_physics_properties /gazebo/get_world_properties /gazebo/pause_physics /gazebo/reset_simulation /gazebo/reset_world /gazebo/set_joint_properties /gazebo/set_link_properties /gazebo/set_link_state /gazebo/set_logger_level /gazebo/set_model_configuration /gazebo/set_model_state /gazebo/set_parameters /gazebo/set_physics_properties /gazebo/spawn_gazebo_model /gazebo/spawn_sdf_model /gazebo/spawn_urdf_model /gazebo/unpause_physics /gazebo_test_tools/recognize_object /object_tf_broadcaster/get_loggers /object_tf_broadcaster/register_object /object_tf_broadcaster/set_logger_level /robot_state_publisher/get_loggers /robot_state_publisher/set_logger_level /rosout/get_loggers /rosout/set_logger_level /rqt_gui_py_node_7161/get_loggers /rqt_gui_py_node_7161/set_logger_level

I'm running ROS Jade with Gazebo 5.3.0 on Mint based on Ubuntu 14.04, I checked out convenience-pkgs, gazebo-pkgs, gazebo-pkgs, jaco-arm-pkgs, joint-control-pkgs and the dependencies from the wiki. Compilation works fine and I'm able to start the gazebo simulation with the robot. Therefore I assume that something is wrong with loading the world plugin or the later loaded plugins that offer the get_info service...

Since I'm quite new to Gazebo and it's plugin system a couldn't figure out until now, where the chain is broken. Any suggestions?

JenniferBuehler commented 8 years ago

Hello,

Just a quick acknowledge that I saw this and going to look into it, I can't make it before tomorrow though. It will probably be something gone wrong in Step... could you send the output of all steps please?

Jenny

odysseusPolytropos commented 8 years ago

Hello Jenny,

please find the output of step 1-3 attached (I don't know how to persuade markdown not to parse the text):

Step 1 Step 2 Step 3

Thank you for looking into it!

JenniferBuehler commented 8 years ago

Hello,

The service is obviously not up and running, as you pointed out.

Can you send a rosparam list after Step 1 and both a rosparam list and a rosservice list after Step 2? Make sure both steps are started in separate terminals (which I guess you did) and are not aborted.

Do you have a roscore running in a separate terminal in the background somewhere?

Jenny

odysseusPolytropos commented 7 years ago

Hello Jenny,

thank you for your reply. Here is the output of the commands: rosparam listafter step 1 rosparam listafter step 2 rosservice listafter step2

I execute every step in a new terminal and they keep running. I tried both, running a fresh roscore before step 1 (after executing killall roscore) and executing the steps without a previously running roscore. I did not find any differences in terms of the erroneous behaviour.

JenniferBuehler commented 7 years ago

Hi,

sorry for taking so long to reply. I've been crazy busy in the last days. I've had to set up a test system again as I haven't been using this code lately. I could reproduce your error, a new mistake must have snug into the code some time in one of the last pushes: The default of load_world_plugins in jaco_on_table/jaco_on_table_gazebo_controlled.launch was set to false :( I don't know why I did that, I must have been testing something and then forgotten to set it back to true.

I've pushed the update, can you try it again?

Jenny

odysseusPolytropos commented 7 years ago

Hello Jenny, thank you very much for investigating. This solves my problem. Anyway I'm not able to see any commit on jaco_on_table_gazebo_controlled.launch. Are you sure you pushed the commit? Thank you once again, Odysseus

JenniferBuehler commented 7 years ago

Hi,

Huh, I thought I did! Will check when I get home. You can change it yourself meanwhile, just set the default to true :)

Jenny

On 30 Nov 2016 09:02, "odysseusPolytropos" notifications@github.com wrote:

Hello Jenny, thank you very much for investigating. This solves my problem. Anyway I'm not able to see any commit on jaco_on_table_gazebo_controlled.launch https://github.com/JenniferBuehler/jaco-arm-pkgs/blob/master/jaco_tutorial/jaco_on_table/launch/jaco_on_table_gazebo_controlled.launch. Are you sure you pushed the commit? Thank you once again, Odysseus

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JenniferBuehler/gazebo-pkgs/issues/7#issuecomment-263713926, or mute the thread https://github.com/notifications/unsubscribe-auth/AMP2ipIro211Ig4mJttSSeCmTW1cukLtks5rDKDqgaJpZM4K7avq .

Abdo1994 commented 6 years ago

Hi. I am working on a Universal Robot but I get the same error at the same step [ERROR] [1479977436.039658131]: Failed to call service /gazebo_objects/get_info, success flag: 0

Where should I add load_world_plugins

I am still new to ROS

Thank you

JenniferBuehler commented 6 years ago

From some launch file, you must launch gazebo, like this

  <include file="$(find gazebo_ros)/launch/empty_world.launch">                 
    <arg name="world_name" value="$(arg gazebo_world_file)"/>                   
    <arg name="paused" value="false"/>                                          
    <arg name="verbose" value="false"/>                                         
    <arg name="use_sim_time" value="true"/>                                     
    <arg name="gui" value="true"/>                                              
    <arg name="headless" value="false"/>                                        
    <arg name="debug" value="false"/>                                           
    <arg name="extra_gazebo_args" value="-s libgazebo_world_plugin_loader.so"/>            
  </include>                    

You must have the extra line extra_gazebo_args