#include <gazebo_activity.h>
Public Member Functions | |
bool | breakLoop () |
bool | execute () |
void | finalize () |
GazeboActivity (const std::string &name, RTT::base::RunnableInterface *run=0) | |
GazeboActivity (const std::string &name, common::Time period, physics::WorldPtr world, RTT::base::RunnableInterface *run=0) | |
unsigned | getCpuAffinity () const |
RTT::Seconds | getPeriod () const |
bool | initialize () |
bool | isActive () const |
bool | isPeriodic () const |
bool | isRunning () const |
void | Load (physics::WorldPtr _world, sdf::ElementPtr _sdf, const std::string &_prefix=std::string()) |
void | loop () |
bool | setCpuAffinity (unsigned cpu) |
bool | setPeriod (RTT::Seconds s) |
bool | start () |
void | step () |
bool | stop () |
RTT::os::ThreadInterface * | thread () |
bool | trigger () |
~GazeboActivity () | |
Private Attributes | |
bool | active |
std::string | mname |
physics::WorldPtr | mworld |
bool | running |
gazebo::event::ConnectionPtr | updateConnection |
UpdateTimer | updateTimer |
Definition at line 39 of file gazebo_activity.h.
gazebo::GazeboActivity::GazeboActivity | ( | const std::string & | name, |
RTT::base::RunnableInterface * | run = 0 |
||
) |
gazebo::GazeboActivity::GazeboActivity | ( | const std::string & | name, |
common::Time | period, | ||
physics::WorldPtr | world, | ||
RTT::base::RunnableInterface * | run = 0 |
||
) |
Definition at line 52 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::breakLoop | ( | ) |
Definition at line 106 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::execute | ( | ) |
Definition at line 177 of file gazebo_activity.cpp.
void gazebo::GazeboActivity::finalize | ( | ) |
Definition at line 112 of file gazebo_activity.cpp.
unsigned gazebo::GazeboActivity::getCpuAffinity | ( | ) | const |
Definition at line 77 of file gazebo_activity.cpp.
RTT::Seconds gazebo::GazeboActivity::getPeriod | ( | ) | const |
Definition at line 63 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::initialize | ( | ) |
Definition at line 92 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::isActive | ( | ) | const |
Definition at line 167 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::isPeriodic | ( | ) | const |
Definition at line 162 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::isRunning | ( | ) | const |
Definition at line 157 of file gazebo_activity.cpp.
void gazebo::GazeboActivity::Load | ( | physics::WorldPtr | _world, |
sdf::ElementPtr | _sdf, | ||
const std::string & | _prefix = std::string() |
||
) |
Definition at line 57 of file gazebo_activity.cpp.
void gazebo::GazeboActivity::loop | ( | ) |
Definition at line 101 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::setCpuAffinity | ( | unsigned | cpu | ) |
Definition at line 82 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::setPeriod | ( | RTT::Seconds | s | ) |
Definition at line 72 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::start | ( | ) |
Definition at line 116 of file gazebo_activity.cpp.
void gazebo::GazeboActivity::step | ( | ) |
Definition at line 97 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::stop | ( | ) |
Definition at line 141 of file gazebo_activity.cpp.
RTT::os::ThreadInterface * gazebo::GazeboActivity::thread | ( | ) |
Definition at line 87 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::trigger | ( | ) |
Definition at line 172 of file gazebo_activity.cpp.
bool gazebo::GazeboActivity::active [private] |
Definition at line 76 of file gazebo_activity.h.
std::string gazebo::GazeboActivity::mname [private] |
Definition at line 73 of file gazebo_activity.h.
physics::WorldPtr gazebo::GazeboActivity::mworld [private] |
Definition at line 74 of file gazebo_activity.h.
bool gazebo::GazeboActivity::running [private] |
Definition at line 75 of file gazebo_activity.h.
Definition at line 79 of file gazebo_activity.h.
Definition at line 78 of file gazebo_activity.h.