Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.

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_dynamicsbelow:

/src/mainLocal.cpp)

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)

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'

'DredgeTool_Factory' Loading SimulatedDevices plugin: 'ForceSensor_Factory'

'ForceSensor_Factory' Loading SimulatedDevices plugin: 'SimDev_Echo_Factory'

'SimDev_Echo_Factory' terminate called after throwing an instance of 'pluginlib::LibraryUnloadException'

'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

SimDev_Echo_Factory Aborted (core dumped)

dumped)

Any suggestion? Thanks so much.

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.