22 #include "gazsim_webcam_thread.h"
24 #include <aspect/logging.h>
25 #include <fvutils/color/conversions.h>
27 #include <utils/math/angle.h>
29 #include <gazebo/msgs/msgs.hh>
30 #include <gazebo/transport/Node.hh>
31 #include <gazebo/transport/transport.hh>
36 using namespace gazebo;
45 :
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) {
Simulates a single webcam in Gazebo.
virtual void finalize()
Finalize the thread.
virtual void loop()
Code to execute in the thread.
virtual void init()
Initialize the thread.
WebcamSimThread()
Constructor.
Thread aspect to use blocked timing.
Configuration * config
This is the Configuration member used to access the configuration.
virtual std::vector< std::string > get_strings(const char *path)=0
Get list of values from configuration which is of type string.
gazebo::transport::NodePtr gazebo_world_node
Gazebo Node for communication with the world (e.g.
virtual void log_debug(const char *component, const char *format,...)=0
Log debug message.
Logger * logger
This is the Logger member used to access the logger.
Thread class encapsulation of pthreads.
const char * name() const
Get name of thread.
Fawkes library namespace.