Loading libargus dynamically as ROS nodelet

Hello,

I am trying to integrate libargus together with ROS. So I took the synchSensors example code and made it into a ROS node, i. e. an executable file that supports ROS. Then I tried to make a ROS nodelet, which is loaded dynamically as a plugin.

If I move just a few lines to a ROS nodelet:

MyNodelet::MyNodelet()
{
  Argus::Status status;
  UniqueObj<CameraProvider> cameraProvider(CameraProvider::create(&status));
  if (status != STATUS_OK) ROS_ERROR("Failed to create cameraProvider");
  
}

I get the following run time errors, saying that some modules are not found:

NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: No module data found
LSC: LSC surface is not based on full res!
LSC: LSC surface is not based on full res!
LSC: LSC surface is not based on full res!

(NvOdmDevice) Error NotInitialized: V4L2Device not powered on (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/V4L2Device.cpp, function setControlVal(), line 378)
(NvOdmDevice) Error NotInitialized: V4L2Device not powered on (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/V4L2Device.cpp, function setControlVal(), line 378)
(NvOdmDevice) Error NotInitialized: V4L2Device not powered on (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/V4L2Device.cpp, function setControlVal(), line 378)