A very simple sensor system example that manages raw detection data. [詳細]
#include <sensorsystem.h>
構成 | |
class | BodyData |
class | SimpleXMLReader |
class | XMLData |
Public メソッド | |
SimpleSensorSystem (const std::string &xmlid, EnvironmentBasePtr penv) | |
virtual | ~SimpleSensorSystem () |
virtual void | Reset () |
resets the system and stops managing all objects. Any objects that are not locked, are deleted | |
virtual void | AddRegisteredBodies (const std::vector< KinBodyPtr > &vbodies) |
automatically register bodies that have some type of SensorSystem data (usually done through xml) | |
virtual KinBody::ManageDataPtr | AddKinBody (KinBodyPtr pbody, XMLReadableConstPtr pdata) |
virtual bool | RemoveKinBody (KinBodyPtr pbody) |
remove body from sensory system. If bDestroy is true, will also deallocate the memory | |
virtual bool | IsBodyPresent (KinBodyPtr pbody) |
returns true if body is present | |
virtual bool | EnableBody (KinBodyPtr pbody, bool bEnable) |
enable/disable a body from being updated by the sensor system | |
virtual bool | SwitchBody (KinBodyPtr pbody1, KinBodyPtr pbody2) |
![]() | |
SensorSystemBase (EnvironmentBasePtr penv) | |
virtual | ~SensorSystemBase () |
![]() | |
InterfaceBase (InterfaceType type, EnvironmentBasePtr penv) | |
virtual | ~InterfaceBase () |
InterfaceType | GetInterfaceType () const |
const std::string & | GetXMLId () const |
const std::string & | GetPluginName () const |
EnvironmentBasePtr | GetEnv () const |
const READERSMAP & | GetReadableInterfaces () const |
Returns the raw map reference, this is not multithread safe and the GetInterfaceMutex should be locked before using. | |
virtual XMLReadablePtr | GetReadableInterface (const std::string &xmltag) const |
Returns the readable interface. [multi-thread safe] | |
virtual XMLReadablePtr | SetReadableInterface (const std::string &xmltag, XMLReadablePtr readable) |
Set a new readable interface and return the previously set interface if it exists. [multi-thread safe] | |
virtual const std::string & | GetDescription () const |
Documentation of the interface in reStructuredText format. See Documenting Interfaces. [multi-thread safe] | |
virtual void | SetDescription (const std::string &description) |
sets a description [multi-thread safe] | |
virtual void | SetUserData (const std::string &key, UserDataPtr data) const |
set user data for a specific key. [multi-thread safe] | |
virtual UserDataPtr | GetUserData (const std::string &key=std::string()) const |
return the user custom data [multi-thread safe] | |
virtual bool | RemoveUserData (const std::string &key) const |
removes a user data pointer. if user data pointer does not exist, then return 0, otherwise 1. [multi-thread safe] | |
virtual void | SetUserData (UserDataPtr data) RAVE_DEPRECATED |
virtual const std::string & | GetURI () const |
the URI used to load the interface (sometimes this is not possible if the definition lies inside an environment file). [multi-thread safe] | |
virtual const std::string & | GetXMLFilename () const |
virtual void | Clone (InterfaceBaseConstPtr preference, int cloningoptions) |
Clone the contents of an interface to the current interface. | |
virtual bool | SendCommand (std::ostream &os, std::istream &is) |
Used to send special commands to the interface and receive output. | |
virtual void | Serialize (BaseXMLWriterPtr writer, int options=0) const |
serializes the interface | |
Static Public メソッド | |
static UserDataPtr | RegisterXMLReaderId (EnvironmentBasePtr penv, const std::string &xmlid) |
registers the XML reader, do not call in the constructor of this class! | |
![]() | |
static InterfaceType | GetInterfaceTypeStatic () |
return the static interface type this class points to (used for safe casting) | |
Protected 型 | |
typedef std::pair < boost::shared_ptr< BodyData > , Transform > | SNAPSHOT |
typedef std::map< int, boost::shared_ptr< BodyData > > | BODIES |
Protected メソッド | |
virtual boost::shared_ptr < BodyData > | CreateBodyData (KinBodyPtr pbody, boost::shared_ptr< XMLData const > pdata) |
virtual void | _UpdateBodies (std::list< SNAPSHOT > &listbodies) |
virtual void | _UpdateBodiesThread () |
virtual void | SetRecentTransform (boost::shared_ptr< BodyData > pdata, const Transform &t) |
![]() | |
virtual void | SetManageData (KinBodyPtr pbody, KinBody::ManageDataPtr data) |
![]() | |
virtual void | RegisterCommand (const std::string &cmdname, InterfaceCommandFn fncmd, const std::string &strhelp) |
Registers a command and its help string. [multi-thread safe] | |
virtual void | UnregisterCommand (const std::string &cmdname) |
Unregisters the command. [multi-thread safe] | |
virtual boost::shared_mutex & | GetInterfaceMutex () const |
Static Protected メソッド | |
static BaseXMLReaderPtr | CreateXMLReaderId (const std::string &xmlid, InterfaceBasePtr ptr, const AttributesList &atts) |
creates a reader to parse the data | |
Protected 変数 | |
std::string | _xmlid |
BODIES | _mapbodies |
boost::mutex | _mutex |
uint64_t | _expirationtime |
expiration time in us | |
bool | _bShutdown |
boost::thread | _threadUpdate |
Additional Inherited Members | |
![]() | |
typedef std::map< std::string, XMLReadablePtr, CaseInsensitiveCompare > | READERSMAP |
A very simple sensor system example that manages raw detection data.
sensorsystem.h の 76 行で定義されています。
|
protected |
sensorsystem.h の 189 行で定義されています。
|
protected |
sensorsystem.h の 188 行で定義されています。
OpenRAVE::SimpleSensorSystem::SimpleSensorSystem | ( | const std::string & | xmlid, |
EnvironmentBasePtr | penv | ||
) |
sensorsystem.cpp の 102 行で定義されています。
|
virtual |
sensorsystem.cpp の 108 行で定義されています。
|
protectedvirtual |
sensorsystem.cpp の 219 行で定義されています。
|
protectedvirtual |
sensorsystem.cpp の 277 行で定義されています。
|
virtual |
add body for registering with sensor system pdata is a pointer to a data structor holding tracking/registration information for the system
OpenRAVE::SensorSystemBaseを実装しています。
sensorsystem.cpp の 135 行で定義されています。
|
virtual |
automatically register bodies that have some type of SensorSystem data (usually done through xml)
OpenRAVE::SensorSystemBaseを実装しています。
sensorsystem.cpp の 121 行で定義されています。
|
protectedvirtual |
sensorsystem.cpp の 212 行で定義されています。
|
staticprotected |
creates a reader to parse the data
sensorsystem.cpp の 92 行で定義されています。
|
virtual |
enable/disable a body from being updated by the sensor system
OpenRAVE::SensorSystemBaseを実装しています。
sensorsystem.cpp の 175 行で定義されています。
|
virtual |
returns true if body is present
OpenRAVE::SensorSystemBaseを実装しています。
sensorsystem.cpp の 169 行で定義されています。
|
static |
registers the XML reader, do not call in the constructor of this class!
sensorsystem.cpp の 97 行で定義されています。
|
virtual |
remove body from sensory system. If bDestroy is true, will also deallocate the memory
OpenRAVE::SensorSystemBaseを実装しています。
sensorsystem.cpp の 161 行で定義されています。
|
virtual |
resets the system and stops managing all objects. Any objects that are not locked, are deleted
OpenRAVE::SensorSystemBaseを実装しています。
sensorsystem.cpp の 115 行で定義されています。
|
inlineprotectedvirtual |
sensorsystem.h の 194 行で定義されています。
|
virtual |
switches the registrations of two bodies. Can be used to quickly change the models of the current bodies
pbody1 | First body to switch |
pbody2 | Second body to switch |
OpenRAVE::SensorSystemBaseを実装しています。
sensorsystem.cpp の 188 行で定義されています。
|
protected |
sensorsystem.h の 205 行で定義されています。
|
protected |
expiration time in us
sensorsystem.h の 204 行で定義されています。
|
protected |
sensorsystem.h の 202 行で定義されています。
|
protected |
sensorsystem.h の 203 行で定義されています。
|
protected |
sensorsystem.h の 206 行で定義されています。
|
protected |
sensorsystem.h の 201 行で定義されています。