Gazebo | Ignition | Community
Ask Your Question
0

gazebo_client.hh not found

asked 2015-06-04 00:30:10 -0600

mugenHexapod gravatar image

updated 2015-06-04 21:30:32 -0600

I was trying to follow this tutorial but when I tried to compile it shows

image description

I tried to remove gazebo client related codes and include, and got it compiled, but the subscriber never calls the callback function to print.

I am using Gazebo 5. What is wrong here?

edit retag flag offensive close merge delete

Comments

Just to zoom a little bit more on the problem, are the gazebo developer libraries installed on your computer?

PML gravatar imagePML ( 2015-06-04 20:49:01 -0600 )edit

libgazebo5-dev right? I did have it installed.

mugenHexapod gravatar imagemugenHexapod ( 2015-06-04 21:29:58 -0600 )edit

Actually i downloaded the same files and got the very same error, client.hh does not exist, since i did this tutorial a few months ago i compared the files and found that in the earlier version

<gazebo/gazebo_client.hh> is <gazebo/gazebo.hh> gazebo::client::setup is gazebo::setupClient gazebo::client::shutdown() is gazebo::shutdown()

So the question that should be asked is how to get the new developer libraries that include this new client.hh?

PML gravatar imagePML ( 2015-06-04 21:51:07 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-06-04 21:43:03 -0600

mugenHexapod gravatar image

I found the problem. The tutorial uses this file. It's probably outdated. And I looked into the source code and found the listener example for Gazebo 5. This is the right file. Got it compiled and printing world info now.

edit flag offensive delete link more
0

answered 2015-12-01 09:05:57 -0600

x gravatar image

And the CMakeLists.txt also should be updated like this file.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-06-04 00:30:10 -0600

Seen: 1,207 times

Last updated: Jun 04 '15