22 #ifndef __PLUGINS_GAZSIM_WEBCAM_THREAD_H_ 23 #define __PLUGINS_GAZSIM_WEBCAM_THREAD_H_ 25 #include <core/threading/thread.h> 26 #include <aspect/clock.h> 27 #include <aspect/configurable.h> 28 #include <aspect/logging.h> 29 #include <aspect/blackboard.h> 30 #include <aspect/blocked_timing.h> 31 #include <plugins/gazebo/aspect/gazebo.h> 34 #include <fvutils/ipc/shm_image.h> 35 #include <boost/circular_buffer.hpp> 38 #include <gazebo/transport/TransportTypes.hh> 39 #include <gazebo/msgs/MessageTypes.hh> 40 #include <gazebo/transport/transport.hh> 42 #include "gazsim_webcam.h" 61 std::vector<GazsimWebcam*> webcams_;
64 std::vector<std::string> shm_ids_;
WebcamSimThread()
Constructor.
Thread aspect to access to BlackBoard.
Thread aspect that allows to obtain the current time from the clock.
Thread aspect to get access to a Gazebo node handle.
virtual void finalize()
Finalize the thread.
Thread class encapsulation of pthreads.
Thread aspect to use blocked timing.
virtual void init()
Initialize the thread.
virtual void loop()
Code to execute in the thread.
Thread simulates a number of webcams in Gazebo.
Thread aspect to log output.
Thread aspect to access configuration data.