HKUST-Aerial-Robotics / Fast-Planner

A Robust and Efficient Trajectory Planner for Quadrotors
GNU General Public License v3.0
2.47k stars 666 forks source link

Constructor error when install in Ubuntu18.04 #44

Closed RENyunfan closed 4 years ago

RENyunfan commented 4 years ago

When I try

catkin_make

I got results like this

/so3_control_nodelet.cpp:218:24: error: expected constructor, destructor, or type conversion before ‘(’ token
 PLUGINLIB_DECLARE_CLASS(so3_control, SO3ControlNodelet, SO3ControlNodelet,
                        ^
uav_simulator/so3_control/
RENyunfan commented 4 years ago

Dear all,

I solved this problem and I found it is the version confliction of pluginlib, try to replace

 PLUGINLIB_DECLARE_CLASS(so3_control, SO3ControlNodelet, SO3ControlNodelet,

in src/uav_simulator/so3_control/src/so3_control_nodelet.cpp:218:24 to

PLUGINLIB_EXPORT_CLASS(  SO3ControlNodelet,  nodelet::Nodelet);