link library in CMakelist.txt.
I link library in CMakeList.txt shown below:
add_executable(mainLocal /home/gupta/catkin_ws_2/src/underwater_simulation/underwater_vehicle_dynamics /src/mainLocal.cpp)
target_link_libraries(mainLocal uwsim ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${ARMADILLO_LIBRARIES} ${LINK_LIBRARIES} BulletDynamics)
BulletDynamics is the library I link. There is no compiling error. But when I run executable file in the terminal, there is error shown below:
Loading SimulatedDevices plugin: 'DredgeTool_Factory'
Loading SimulatedDevices plugin: 'ForceSensor_Factory'
Loading SimulatedDevices plugin: 'SimDev_Echo_Factory'
terminate called after throwing an instance of 'pluginlib::LibraryUnloadException'
what(): According to the loaded plugin descriptions the class ForceSensor_Factory with base class type uwsim::SimulatedDeviceFactory does not exist. Declared types are DredgeTool_Factory ForceSensor_Factory SimDev_Echo_Factory
Aborted (core dumped)
Any suggestion? Thanks so much.
Asked by ZYS on 2016-06-01 09:21:01 UTC
Comments
Does this help? http://wiki.ros.org/pluginlib/Troubleshooting#Error:_Plugin_failed_to_load
Asked by jarvisschultz on 2016-06-01 12:21:28 UTC