Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error with gazebo-11 #4

Open
aliciaji1993 opened this issue Apr 22, 2024 · 0 comments
Open

Compiling error with gazebo-11 #4

aliciaji1993 opened this issue Apr 22, 2024 · 0 comments

Comments

@aliciaji1993
Copy link

aliciaji1993 commented Apr 22, 2024

I am trying to catkin build velodyne_gazebo_plugins, but found several compiling errors:

/home/yufeng/ros_catkin_ws/src/velodyne_simulator/velodyne_gazebo_plugins/src/GazeboRosVelodyneLaser.cpp: In member function ‘virtual void gazebo::GazeboRosVelodyneLaser::Load(gazebo::sensors::SensorPtr, sdf::v9::ElementPtr)’:
/home/yufeng/ros_catkin_ws/src/velodyne_simulator/velodyne_gazebo_plugins/src/GazeboRosVelodyneLaser.cpp:98:31: error: ‘class gazebo::physics::World’ has no member named ‘GetSimTime’; did you mean ‘SetSimTime’?
   98 |   last_update_time_ = world_->GetSimTime();
      |                               ^~~~~~~~~~
      |                               SetSimTime
/home/yufeng/ros_catkin_ws/src/velodyne_simulator/velodyne_gazebo_plugins/src/GazeboRosVelodyneLaser.cpp: In member function ‘void gazebo::GazeboRosVelodyneLaser::putLaserData(const gazebo::common::Time&)’:
/home/yufeng/ros_catkin_ws/src/velodyne_simulator/velodyne_gazebo_plugins/src/GazeboRosVelodyneLaser.cpp:234:3: error: ‘math’ has not been declared
  234 |   math::Angle maxAngle = parent_ray_sensor_->AngleMax();
      |   ^~~~
/home/yufeng/ros_catkin_ws/src/velodyne_simulator/velodyne_gazebo_plugins/src/GazeboRosVelodyneLaser.cpp:235:3: error: ‘math’ has not been declared
  235 |   math::Angle minAngle = parent_ray_sensor_->AngleMin();
      |   ^~~~
/home/yufeng/ros_catkin_ws/src/velodyne_simulator/velodyne_gazebo_plugins/src/GazeboRosVelodyneLaser.cpp:248:3: error: ‘math’ has not been declared
  248 |   math::Angle verticalMaxAngle = parent_ray_sensor_->VerticalAngleMax();
      |   ^~~~
/home/yufeng/ros_catkin_ws/src/velodyne_simulator/velodyne_gazebo_plugins/src/GazeboRosVelodyneLaser.cpp:249:3: error: ‘math’ has not been declared
  249 |   math::Angle verticalMinAngle = parent_ray_sensor_->VerticalAngleMin();
      |   ^~~~
/home/yufeng/ros_catkin_ws/src/velodyne_simulator/velodyne_gazebo_plugins/src/GazeboRosVelodyneLaser.cpp:266:18: error: ‘maxAngle’ was not declared in this scope
  266 |   double yDiff = maxAngle.Radian() - minAngle.Radian();
      |                  ^~~~~~~~
/home/yufeng/ros_catkin_ws/src/velodyne_simulator/velodyne_gazebo_plugins/src/GazeboRosVelodyneLaser.cpp:266:38: error: ‘minAngle’ was not declared in this scope
  266 |   double yDiff = maxAngle.Radian() - minAngle.Radian();

According to this github post,it seems that

World::GetSimTime was deprecated in gazebo8 and replaced by World::SimTime.

gazebo math is also removed in gazebo9

seems that code is broken starting with gazebo9. Any plan to fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant