Drake
WorldState Class Reference

A class that represents the iiwa pick and place world, which contains a KUKA iiwa arm, a Schunk WSG gripper, and an object that is being manipulated. More...

#include <drake/examples/kuka_iiwa_arm/pick_and_place/world_state.h>

Public Member Functions

 WorldState (int num_tables=0, const Vector3< double > &object_dimensions=Vector3< double >::Zero())
 Constructs an WorldState object that holds the states that represent a pick and place scenario. More...
 
 ~WorldState ()
 
void HandleIiwaStatus (const lcmt_iiwa_status &iiwa_msg, const Isometry3< double > &iiwa_base)
 Update the stored iiwa status from the measured joint positions in iiwa_msg and the base pose in iiwa_base. More...
 
void HandleWsgStatus (const lcmt_schunk_wsg_status &wsg_msg)
 Update the stored wsg status from wsg_msg. More...
 
void HandleObjectStatus (const bot_core::robot_state_t &obj_msg)
 Update the stored object status from obj_msg. More...
 
void HandleTableStatus (int index, const Isometry3< double > &pose)
 Update the pose of table index from pose. More...
 
double get_iiwa_time () const
 
double get_wsg_time () const
 
double get_obj_time () const
 
const std::vector< Isometry3< double > > & get_table_poses () const
 
const Isometry3< double > & get_object_pose () const
 
const Vector6< double > & get_object_velocity () const
 
const Vector3< double > & get_object_dimensions () const
 
const Isometry3< double > & get_iiwa_base () const
 
const VectorX< double > & get_iiwa_q () const
 
const VectorX< double > & get_iiwa_v () const
 
double get_wsg_q () const
 
double get_wsg_v () const
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 WorldState (const WorldState &)=default
 
WorldStateoperator= (const WorldState &)=default
 
 WorldState (WorldState &&)=default
 
WorldStateoperator= (WorldState &&)=default
 

Detailed Description

A class that represents the iiwa pick and place world, which contains a KUKA iiwa arm, a Schunk WSG gripper, and an object that is being manipulated.

These states are updated through LCM messages.

Constructor & Destructor Documentation

WorldState ( const WorldState )
default
WorldState ( WorldState &&  )
default
WorldState ( int  num_tables = 0,
const Vector3< double > &  object_dimensions = Vector3<double>::Zero() 
)

Constructs an WorldState object that holds the states that represent a pick and place scenario.

No synchronization is attempted between the various states (iiwa/wsg/obj), the accessors just return the most recently received status.

~WorldState ( )

Member Function Documentation

const Isometry3<double>& get_iiwa_base ( ) const
inline

Here is the caller graph for this function:

const VectorX<double>& get_iiwa_q ( ) const
inline

Here is the caller graph for this function:

double get_iiwa_time ( ) const
inline

Here is the caller graph for this function:

const VectorX<double>& get_iiwa_v ( ) const
inline

Here is the caller graph for this function:

double get_obj_time ( ) const
inline
const Vector3<double>& get_object_dimensions ( ) const
inline
const Isometry3<double>& get_object_pose ( ) const
inline

Here is the caller graph for this function:

const Vector6<double>& get_object_velocity ( ) const
inline
const std::vector<Isometry3<double> >& get_table_poses ( ) const
inline
double get_wsg_q ( ) const
inline

Here is the caller graph for this function:

double get_wsg_time ( ) const
inline

Here is the caller graph for this function:

double get_wsg_v ( ) const
inline

Here is the caller graph for this function:

void HandleIiwaStatus ( const lcmt_iiwa_status &  iiwa_msg,
const Isometry3< double > &  iiwa_base 
)

Update the stored iiwa status from the measured joint positions in iiwa_msg and the base pose in iiwa_base.

void HandleObjectStatus ( const bot_core::robot_state_t &  obj_msg)

Update the stored object status from obj_msg.

Here is the call graph for this function:

void HandleTableStatus ( int  index,
const Isometry3< double > &  pose 
)

Update the pose of table index from pose.

void HandleWsgStatus ( const lcmt_schunk_wsg_status &  wsg_msg)

Update the stored wsg status from wsg_msg.

WorldState& operator= ( const WorldState )
default
WorldState& operator= ( WorldState &&  )
default

The documentation for this class was generated from the following files: