Class to store information about each object to be populated. More...
#include <perception_scoring_plugin.hh>
Public Member Functions | |
void | EndTrial () |
move the object back to its original location and make inactive More... | |
PerceptionObject (const double &_time, const double &_duration, const std::string &_type, const std::string &_name, const ignition::math::Pose3d &_trialPose, const gazebo::physics::WorldPtr _world) | |
constructor of perception object More... | |
void | SetError (const double &_error) |
set the error of this boject if this object is active and this is the lowest seen error More... | |
void | StartTrial (const gazebo::physics::EntityPtr &_frame) |
move the object to where it is supposed to be relative to the frame More... | |
std::string | Str () |
Public Attributes | |
bool | active = false |
bool to tell weather or not the object is open for attempts More... | |
double | duration |
amount of time in which the object should be spawned. More... | |
double | error = -1.0 |
error associated with the guess of a moel More... | |
gazebo::physics::EntityPtr | modelPtr |
ModelPtr to the model that this object is representing. More... | |
std::string | name |
PerceptionObject type. More... | |
double | time |
Simulation time in which the object should be spawned. More... | |
ignition::math::Pose3d | trialPose |
Pose in which the object should be placed in wam-v's frame. More... | |
std::string | type |
PerceptionObject type. More... | |
Private Attributes | |
ignition::math::Pose3d | origPose |
Pose in which the object should be placed in global frame. More... | |
Class to store information about each object to be populated.
Definition at line 39 of file perception_scoring_plugin.hh.
PerceptionObject::PerceptionObject | ( | const double & | _time, |
const double & | _duration, | ||
const std::string & | _type, | ||
const std::string & | _name, | ||
const ignition::math::Pose3d & | _trialPose, | ||
const gazebo::physics::WorldPtr | _world | ||
) |
constructor of perception object
Definition at line 59 of file perception_scoring_plugin.cc.
void PerceptionObject::EndTrial | ( | ) |
move the object back to its original location and make inactive
Definition at line 136 of file perception_scoring_plugin.cc.
void PerceptionObject::SetError | ( | const double & | _error | ) |
set the error of this boject if this object is active and this is the lowest seen error
Definition at line 102 of file perception_scoring_plugin.cc.
void PerceptionObject::StartTrial | ( | const gazebo::physics::EntityPtr & | _frame | ) |
move the object to where it is supposed to be relative to the frame
of the robot and make it active
Definition at line 109 of file perception_scoring_plugin.cc.
std::string PerceptionObject::Str | ( | ) |
Definition at line 86 of file perception_scoring_plugin.cc.
bool PerceptionObject::active = false |
bool to tell weather or not the object is open for attempts
Definition at line 63 of file perception_scoring_plugin.hh.
double PerceptionObject::duration |
amount of time in which the object should be spawned.
Definition at line 45 of file perception_scoring_plugin.hh.
double PerceptionObject::error = -1.0 |
error associated with the guess of a moel
Definition at line 66 of file perception_scoring_plugin.hh.
gazebo::physics::EntityPtr PerceptionObject::modelPtr |
ModelPtr to the model that this object is representing.
Definition at line 60 of file perception_scoring_plugin.hh.
std::string PerceptionObject::name |
PerceptionObject type.
Definition at line 51 of file perception_scoring_plugin.hh.
|
private |
Pose in which the object should be placed in global frame.
Definition at line 57 of file perception_scoring_plugin.hh.
double PerceptionObject::time |
Simulation time in which the object should be spawned.
Definition at line 42 of file perception_scoring_plugin.hh.
ignition::math::Pose3d PerceptionObject::trialPose |
Pose in which the object should be placed in wam-v's frame.
Definition at line 54 of file perception_scoring_plugin.hh.
std::string PerceptionObject::type |
PerceptionObject type.
Definition at line 48 of file perception_scoring_plugin.hh.