beltransen / velo2cam_gazebo

Repository including Gazebo models, plugins and worlds to test calibration algorithms for Lidar-camera setups.
http://wiki.ros.org/velo2cam_gazebo
GNU General Public License v2.0
143 stars 42 forks source link

"‘math’ has not been declared" when catkin_make #13

Closed mig29kub closed 1 year ago

mig29kub commented 3 years ago

I face this issue when build by catkin_make, anyones can help?

image

kartikcode commented 3 years ago

The entire model was probably built in versions before Gazebo 7. With gazebo 9, the following changes need to be made: #include <ignition/math/Vector3.hh> ignition::math::Pose3d pose; pose.Pos().X() = .....

This worked for me. For more details, you can check this forum.