23 #include "message_handler_thread.h"
25 #include <interfaces/OpenRaveInterface.h>
39 :
Thread(
"OpenRaveMessageHandlerThread",
Thread::OPMODE_WAITFORWAKEUP),
41 __or_thread( or_thread ),
83 __if_openrave->
write();
146 __if_openrave->
write();
RotateObjectQuatMessage Fawkes BlackBoard Interface Message.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
bool msgq_empty()
Check if queue is empty.
char * name() const
Get name value.
void set_success(const bool new_success)
Set success value.
ReleaseAllObjectsMessage Fawkes BlackBoard Interface Message.
virtual bool attach_object(const std::string &name, fawkes::OpenRaveRobot *robot=NULL)
Attach a kinbody to the robot.
char * name() const
Get name value.
Fawkes library namespace.
float y() const
Get y value.
float z() const
Get z value.
void set_final(const bool new_final)
Set final value.
float z() const
Get z value.
char * name() const
Get name value.
char * name() const
Get name value.
char * name() const
Get name value.
Thread class encapsulation of pthreads.
void write()
Write from local copy into BlackBoard memory.
unsigned int id() const
Get message ID.
virtual bool move_object(const std::string &name, float trans_x, float trans_y, float trans_z, fawkes::OpenRaveRobot *robot=NULL)
Move object in the environment.
virtual ~OpenRaveMessageHandlerThread()
Destructor.
Logger * logger
This is the Logger member used to access the logger.
virtual Interface * open_for_writing(const char *interface_type, const char *identifier)=0
Open interface for writing.
RotateObjectMessage Fawkes BlackBoard Interface Message.
char * name() const
Get name value.
Thread aspect to use blocked timing.
virtual bool delete_object(const std::string &name)
Remove object from environment.
void msgq_pop()
Erase first message from queue.
virtual const char * what() const
Get primary string.
void set_msgid(const uint32_t new_msgid)
Set msgid value.
Base class for exceptions in Fawkes.
AttachObjectMessage Fawkes BlackBoard Interface Message.
float x() const
Get x value.
Message * msgq_first()
Get the first message from the message queue.
char * newName() const
Get newName value.
virtual void loop()
Code to execute in the thread.
float x() const
Get x value.
virtual void finalize()
Finalize the thread.
virtual bool rotate_object(const std::string &name, float quat_x, float quat_y, float quat_z, float quat_w)
Rotate object by a quaternion.
virtual bool release_object(const std::string &name, fawkes::OpenRaveRobot *robot=NULL)
Release a kinbody from the robot.
float x() const
Get x value.
bool msgq_first_is()
Check if first message has desired type.
virtual void log_warn(const char *component, const char *format,...)=0
Log warning message.
float z() const
Get z value.
char * path() const
Get path value.
ReleaseObjectMessage Fawkes BlackBoard Interface Message.
const char * name() const
Get name of thread.
RenameObjectMessage Fawkes BlackBoard Interface Message.
virtual void init()
Initialize the thread.
float y() const
Get y value.
virtual bool rename_object(const std::string &name, const std::string &new_name)
Rename object.
char * name() const
Get name value.
float y() const
Get y value.
float w() const
Get w value.
DeleteObjectMessage Fawkes BlackBoard Interface Message.
OpenRaveMessageHandlerThread(OpenRaveThread *or_thread)
Constructor.
virtual bool add_object(const std::string &name, const std::string &filename)
Add an object to the environment.
MoveObjectMessage Fawkes BlackBoard Interface Message.
virtual bool release_all_objects(fawkes::OpenRaveRobot *robot=NULL)
Release all grabbed kinbodys from the robot.
OpenRaveInterface Fawkes BlackBoard Interface.
BlackBoard * blackboard
This is the BlackBoard instance you can use to interact with the BlackBoard.
char * name() const
Get name value.
virtual void close(Interface *interface)=0
Close interface.
AddObjectMessage Fawkes BlackBoard Interface Message.