nerian_stereo_nodelet.cpp
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (c) 2022 Nerian Vision GmbH
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *******************************************************************************/
14 
16 #include "nerian_stereo_nodelet.h"
17 
18 namespace nerian_stereo {
19 
23 }
24 
28  try {
30  } catch(...) {
31  ROS_ERROR("Handshake with parameter server failed; no dynamic parameters - please verify firmware version. Image transport is unaffected.");
32  }
33  StereoNodeBase::publishTransform(); // initial transform
35  // 2kHz timer for lower latency (stereoIteration will then block)
37 }
38 
39 } // namespace
40 
void prepareAsyncTransfer()
Connects to the image service to request the stream of image sets.
Timer createTimer(Rate r, Handler h, Obj o, bool oneshot=false, bool autostart=true) const
void stereoIteration(const ros::TimerEvent &)
Callback for the ros::Timer that replaces a processing loop in Nodelets; wraps processOneImageSet() ...
ros::NodeHandle & getNH() override
A driver node that receives data from Nerian stereo devices and forwards it to ROS.
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
#define ROS_ERROR(...)
virtual void onInit()
Nodelet initialization: performs ROS parameter/dynamic_reconfigure init, connects to image service...
void init()
Performs general initializations.


nerian_stereo
Author(s): Nerian Vision Technologies
autogenerated on Thu Jan 12 2023 03:44:09