RobWorkProject
23.9.11-
|
Log a set of contact forces and torques. More...
#include <LogContactForceTorque.hpp>
Inherits LogForceTorque.
Public Types | |
typedef rw::core::Ptr< LogContactForceTorque > | Ptr |
Smart pointer type of LogContactForceTorque. | |
Public Types inherited from LogForceTorque | |
typedef rw::core::Ptr< LogForceTorque > | Ptr |
Smart pointer type of LogForceTorque. | |
Public Types inherited from SimulatorLogEntry | |
typedef rw::core::Ptr< SimulatorLogEntry > | Ptr |
Smart pointer type of SimulatorLogEntry. | |
Public Types inherited from SimulatorLog | |
typedef rw::core::Ptr< SimulatorLog > | Ptr |
Smart pointer type of SimulatorLog. | |
typedef rw::core::Ptr< const SimulatorLog > | CPtr |
Smart pointer type of const SimulatorLog. | |
Public Member Functions | |
LogContactForceTorque (SimulatorLogScope *parent) | |
Constructor. More... | |
virtual | ~LogContactForceTorque () |
Destructor. | |
virtual std::string | getType () const |
Get a textual representation of the type of the item. More... | |
virtual bool | operator== (const SimulatorLog &b) const |
Check if logs are identical. More... | |
virtual std::list< SimulatorLogEntry::Ptr > | getLinkedEntries () const |
Get a list of other entries that this entry is linked to. More... | |
virtual bool | autoLink () |
Do automatic linking to other entries. More... | |
virtual SimulatorLogEntry::Ptr | createNew (SimulatorLogScope *parent) const |
Create a new entry of the same type (no data is copied). More... | |
virtual int | sizeLinkedEntry () const |
Get the size of the linked entry (if any). More... | |
virtual const std::string & | getNameA (std::size_t i) const |
Get name of the first object. More... | |
virtual const std::string & | getNameB (std::size_t i) const |
Get name of the second object. More... | |
virtual rw::math::Vector3D | getPositionA (std::size_t i) const |
Get anchor position on the first object. More... | |
virtual rw::math::Vector3D | getPositionB (std::size_t i) const |
Get anchor position on the second object. More... | |
rw::core::Ptr< LogContactSet > | getContacts () const |
Get the positions of the contacts. More... | |
Public Member Functions inherited from LogForceTorque | |
LogForceTorque (SimulatorLogScope *parent) | |
Constructor. More... | |
virtual | ~LogForceTorque () |
Destructor. | |
virtual void | read (class rw::common::InputArchive &iarchive, const std::string &id) |
virtual void | write (class rw::common::OutputArchive &oarchive, const std::string &id) const |
rw::math::Wrench6D | getWrenchBodyA (std::size_t i) const |
Get the contact wrench acting at the first body. More... | |
rw::math::Wrench6D | getWrenchBodyB (std::size_t i) const |
Get the contact wrench acting at the second body. More... | |
void | setWrench (std::size_t i, const rw::math::Wrench6D<> &wrenchA, const rw::math::Wrench6D<> &wrenchB) |
Set a given wrench pair. More... | |
Public Member Functions inherited from SimulatorLogEntry | |
SimulatorLogEntry (SimulatorLogScope *parent) | |
Constructor. More... | |
virtual | ~SimulatorLogEntry () |
Destructor. | |
virtual std::size_t | children () const |
Get the number of children under this log item. More... | |
virtual int | line () const |
Get the line number in the file where this entry was added. More... | |
virtual void | setLine (int line) |
Set the line number where this entry was added. More... | |
Public Member Functions inherited from SimulatorLog | |
SimulatorLog (SimulatorLogScope *parent=NULL) | |
Constructor. More... | |
virtual | ~SimulatorLog () |
Destructor. | |
virtual SimulatorLogScope * | getParent () const |
Get the parent of this log item. More... | |
virtual bool | operator!= (const SimulatorLog &b) const |
Check if logs are non-identical. More... | |
virtual std::string | getFilename () const |
Get the full filename with path for where this log entry was created. More... | |
virtual void | setFilename (const std::string &file) |
Set the name of the file where this log entry was created. More... | |
virtual void | setFilename (const char *file) |
Set the name of the file where this log entry was created. More... | |
virtual std::string | getDescription () const |
Get a string describing this entry. More... | |
virtual void | setDescription (const std::string &description) |
Set a very short description of this entry. More... | |
Public Member Functions inherited from Serializable | |
virtual | ~Serializable () |
destructor | |
Static Public Member Functions | |
static std::string | getTypeID () |
Get the type id of this entry type. More... | |
Log a set of contact forces and torques.
LogContactForceTorque | ( | SimulatorLogScope * | parent | ) |
Constructor.
parent | the parent of this log item. |
|
virtual |
Do automatic linking to other entries.
Implements LogForceTorque.
|
virtual |
Create a new entry of the same type (no data is copied).
parent | the parent of the new entry. |
Implements LogForceTorque.
rw::core::Ptr<LogContactSet> getContacts | ( | ) | const |
Get the positions of the contacts.
This is similar to getLinkedEntries.
|
virtual |
Get a list of other entries that this entry is linked to.
Using linked entries makes it possible to avoid logging too much redundant information.
Implements LogForceTorque.
|
virtual |
Get name of the first object.
i | [in] the index. |
Implements LogForceTorque.
|
virtual |
Get name of the second object.
i | [in] the index. |
Implements LogForceTorque.
|
virtual |
Get anchor position on the first object.
i | [in] the index. |
Implements LogForceTorque.
|
virtual |
Get anchor position on the second object.
i | [in] the index. |
Implements LogForceTorque.
|
virtual |
Get a textual representation of the type of the item.
Implements LogForceTorque.
|
static |
Get the type id of this entry type.
|
virtual |
Check if logs are identical.
b | [in] other log to compare with. |
Reimplemented from LogForceTorque.
|
virtual |
Get the size of the linked entry (if any).
Implements LogForceTorque.