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

catkin build compiler error: cannot allocate an object of abstract type ‘steer_drive_controller::SteerDriveController’ because the following virtual functions are pure within ‘steer_drive_controller::SteerDriveController’ #20

Open
chongyuelinn-nus opened this issue Nov 7, 2017 · 1 comment

Comments

@chongyuelinn-nus
Copy link

Hi, I am trying to use this plugin but am having problems compiling the code. The steer_drive_controller package gives the following error:

.../steer_drive_ros/steer_drive_controller/include/steer_drive_controller/steer_drive_controller.h:42,
from /home/yl/test_ws/src/autonomous_bus/simulation/steer_drive_ros/steer_drive_controller/src/steer_drive_controller.cpp:48:
/opt/ros/indigo/include/class_loader/meta_object.h: In instantiation of ‘B* class_loader::class_loader_private::MetaObject<C, B>::create() const [with C = steer_drive_controller::SteerDriveController; B = controller_interface::ControllerBase]’:

.../steer_drive_ros/steer_drive_controller/src/steer_drive_controller.cpp:520:1: required from here
/opt/ros/indigo/include/class_loader/meta_object.h:193:17: error: cannot allocate an object of abstract type ‘steer_drive_controller::SteerDriveController’
return new C;
^
In file included from .../steer_drive_ros/steer_drive_controller/src/steer_drive_controller.cpp:48:0:
.../steer_drive_ros/steer_drive_controller/include/steer_drive_controller/steer_drive_controller.h:67:9: note: because the following virtual functions are pure within ‘steer_drive_controller::SteerDriveController’:
class SteerDriveController
^
I am on the kinetic branch (but I am running gazebo 7 on ros indigo). I tried with the main branch and got the same error.
Please advise and thank you!

Best regards,
Linn

@MoriKen254
Copy link
Contributor

Sorry for late reply.

If you use ros indigo, plz change to indigo-devel and try build again.

Best regards

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

2 participants