Fawkes API
Fawkes Development Version
|
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) {
virtual void init()
Initialize the thread.
WebcamSimThread()
Constructor.
Thread aspect to use blocked timing.
virtual void loop()
Code to execute in the thread.
const char * name() const
Get name of thread.
Logger * logger
This is the Logger member used to access the logger.
Fawkes library namespace.
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.
Configuration * config
This is the Configuration member used to access the configuration.
Simulates a single webcam in Gazebo.
Thread class encapsulation of pthreads.
virtual void finalize()
Finalize the thread.
virtual void log_debug(const char *component, const char *format,...)=0
Log debug message.