ros-simulation / gazebo_ros_pkgs

Wrappers, tools and additional API's for using ROS with Gazebo
http://wiki.ros.org/gazebo_ros_pkgs
774 stars 772 forks source link

‘LightPtr’ is not a member of ‘gazebo::physics’ #575

Closed wangzhaodong123 closed 7 years ago

wangzhaodong123 commented 7 years ago

When I catkin_make my work_space , the problem happened: ‘LightPtr’ is not a member of ‘gazebo::physics’ why? can you help me ? Thank you .

j-rivero commented 7 years ago

I think that your facing a problem migration from one gazebo version to another, probably from gazebo8 to gazebo9. There is a good document in gazebo upstream project describing the deprecations and the replacement functions.

For this kind of questions related to fails in compilation, please use http://answers.gazebosim.org.

wangzhaodong123 commented 7 years ago

Thanks for advise.After installing gazebo7, I met another problem when i catkin_make my work_space: Could not find a package configuration file provided by "gazebo" with any of the following names:

gazeboConfig.cmake
gazebo-config.cmake

Could you tell me why? Thank you.

scpeters commented 7 years ago

@wangzhaodong123 did you install libgazebo7-dev? I believe that has the cmake config files.

wangzhaodong123 commented 7 years ago

@scpeters @j-rivero Thank you very much,and i solved the problem just now.Thank you.