22 #include "gazsim_webcam_thread.h" 27 #include <utils/math/angle.h> 29 #include <gazebo/transport/Node.hh> 30 #include <gazebo/msgs/msgs.hh> 31 #include <gazebo/transport/transport.hh> 32 #include <aspect/logging.h> 34 #include <fvutils/color/conversions.h> 46 :
Thread(
"WebcamSimThread",
Thread::OPMODE_WAITFORWAKEUP),
56 for (std::vector<std::string>::iterator it = shm_ids_.begin(); it != shm_ids_.end(); ++it)
64 for (std::vector<GazsimWebcam*>::iterator it = webcams_.begin(); it != webcams_.end(); ++it)
WebcamSimThread()
Constructor.
Fawkes library namespace.
gazebo::transport::NodePtr gazebo_world_node
Gazebo Node for communication with the world (e.g.
virtual void finalize()
Finalize the thread.
Thread class encapsulation of pthreads.
Logger * logger
This is the Logger member used to access the logger.
Thread aspect to use blocked timing.
virtual void init()
Initialize the thread.
virtual void loop()
Code to execute in the thread.
const char * name() const
Get name of thread.
virtual void log_debug(const char *component, const char *format,...)=0
Log debug message.
virtual std::vector< std::string > get_strings(const char *path)=0
Get list of values from configuration which is of type string.
Configuration * config
This is the Configuration member used to access the configuration.
Simulates a single webcam in Gazebo.