Public Member Functions | Protected Member Functions | Protected Attributes
shadowrobot::MovementFromImage Class Reference

#include <movement_from_image.hpp>

Inheritance diagram for shadowrobot::MovementFromImage:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MovementFromImage (std::string image_path)
virtual ~MovementFromImage ()

Protected Member Functions

void generate_movement_ ()

Protected Attributes

boost::shared_ptr< Magick::Image > image_
 The image from which the movement is generated.
ssize_t nb_cols_
 The number of columns in the image.
ssize_t nb_rows_
 The number of rows in the image.

Detailed Description

Definition at line 37 of file movement_from_image.hpp.


Constructor & Destructor Documentation

Definition at line 35 of file movement_from_image.cpp.

Definition at line 47 of file movement_from_image.cpp.


Member Function Documentation

Generates a movement from the given png file:

  • Reads the image from the top left corner, row by row.
  • The first encountered pixel is the target (the scale is the full range of the joint = the height of the png).

Definition at line 51 of file movement_from_image.cpp.


Member Data Documentation

boost::shared_ptr<Magick::Image> shadowrobot::MovementFromImage::image_ [protected]

The image from which the movement is generated.

Definition at line 54 of file movement_from_image.hpp.

The number of columns in the image.

Definition at line 57 of file movement_from_image.hpp.

The number of rows in the image.

Definition at line 59 of file movement_from_image.hpp.


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


sr_movements
Author(s): Ugo Cupcic / ugo@shadowrobot.com
autogenerated on Mon Oct 6 2014 07:51:09