catkin_make errors caused by Gazebo 9
I am using ROS melodic and Gazebo 9. I tried to use catkin_make and ended up with the following errors. Can someone help me resolve this?
[ 96%] Built target gazebo_ros_multicamera [ 97%] Built target gazebo_ros_prosilica [ 97%] Built target gazebo_ros_camera [ 98%] Built target gazebo_ros_triggered_camera [ 98%] Built target gazebo_ros_depth_camera [ 98%] Built target gazebo_ros_openni_kinect [ 98%] Built target gazebo_ros_triggered_multicamera /home/panini/catkin_ws/src/gazebo_ros_link_attacher/src/gazebo_ros_link_attacher.cpp: In member function ‘bool gazebo::GazeboRosLinkAttacher::attach(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, std::__cxx11::string)’: /home/panini/catkin_ws/src/gazebo_ros_link_attacher/src/gazebo_ros_link_attacher.cpp:66:40: error: ‘class gazebo::physics::World’ has no member named ‘GetByName’; did you mean ‘BaseByName’? physics::BasePtr b1 = this->world->GetByName(model1); ^~~~~~~~~ BaseByName /home/panini/catkin_ws/src/gazebo_ros_link_attacher/src/gazebo_ros_link_attacher.cpp:72:40: error: ‘class gazebo::physics::World’ has no member named ‘GetByName’; did you mean ‘BaseByName’? physics::BasePtr b2 = this->world->GetByName(model2); ^~~~~~~~~ BaseByName In file included from /opt/ros/melodic/include/ros/ros.h:40:0, from /home/panini/catkin_ws/src/gazebo_ros_link_attacher/src/gazebo_ros_link_attacher.cpp:2: /home/panini/catkin_ws/src/gazebo_ros_link_attacher/src/gazebo_ros_link_attacher.cpp:94:100: error: ‘class gazebo::physics::Inertial’ has no member named ‘GetMass’; did you mean ‘SetMass’? ROS_DEBUG_STREAM("link1 inertia is not NULL, for example, mass is: " << l1->GetInertial()->GetMass()); ^ /opt/ros/melodic/include/ros/console.h:358:64: note: in definition of macro ‘ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER’ __rosconsole_print_stream_at_location_with_filter__ss__ << args; \ ^~~~ /opt/ros/melodic/include/ros/console.h:406:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_STREAM_AT_LOCATION’ ROSCONSOLE_PRINT_STREAM_AT_LOCATION(args); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/ros/melodic/include/ros/console.h:579:43: note: in expansion of macro ‘ROS_LOG_STREAM_COND’ #define ROS_LOG_STREAM(level, name, args) ROS_LOG_STREAM_COND(true, level, name, args) ^~~~~~~~~~~~~~~~~~~ /opt/ros/melodic/include/rosconsole/macros_generated.h:59:32: note: in expansion of macro ‘ROS_LOG_STREAM’ #define ROS_DEBUG_STREAM(args) ROS_LOG_STREAM(::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) ^~~~~~~~~~~~~~ /home/panini/catkin_ws/src/gazebo_ros_link_attacher/src/gazebo_ros_link_attacher.cpp:94:9: note: in expansion of macro ‘ROS_DEBUG_STREAM’ ROS_DEBUG_STREAM("link1 inertia is not NULL, for example, mass is: " << l1->GetInertial()->GetMass()); ^ /home/panini/catkin_ws/src/gazebo_ros_link_attacher/src/gazebo_ros_link_attacher.cpp:106:100: error: ‘class gazebo::physics::Inertial’ has no member named ‘GetMass’; did you mean ‘SetMass’? ROS_DEBUG_STREAM("link2 inertia is not NULL, for example, mass is: " << l2->GetInertial()->GetMass()); ^ /opt/ros/melodic/include/ros/console.h:358:64: note: in definition of macro ‘ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER’ __rosconsole_print_stream_at_location_with_filter__ss__ << args; \ ^~~~ /opt/ros/melodic/include/ros/console.h:406:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_STREAM_AT_LOCATION’ ROSCONSOLE_PRINT_STREAM_AT_LOCATION(args); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/ros/melodic/include/ros/console.h:579:43: note: in expansion of macro ‘ROS_LOG_STREAM_COND’ #define ROS_LOG_STREAM(level, name, args) ROS_LOG_STREAM_COND(true, level, name, args) ^~~~~~~~~~~~~~~~~~~ /opt/ros/melodic/include/rosconsole/macros_generated.h:59:32: note: in expansion of macro ‘ROS_LOG_STREAM’ #define ROS_DEBUG_STREAM(args) ROS_LOG_STREAM(::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) ^~~~~~~~~~~~~~ /home/panini/catkin_ws/src/gazebo_ros_link_attacher/src/gazebo_ros_link_attacher.cpp:106:9: note: in expansion of macro ‘ROS_DEBUG_STREAM’ ROS_DEBUG_STREAM("link2 inertia is not NULL, for example, mass is: " << l2->GetInertial()->GetMass()); ^ /home/panini/catkin_ws/src/gazebo_ros_link_attacher/src/gazebo_ros_link_attacher.cpp:118:27: error: ‘math’ has not been declared j.joint->Load(l1, l2, math::Pose()); ^~~~ /home/panini/catkin_ws/src/gazebo_ros_link_attacher/src/gazebo_ros_link_attacher.cpp:136:14: error: ‘class ...