Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
shadowrobot::MovementFromImage Class Reference

#include <movement_from_image.hpp>

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

Public Member Functions

 MovementFromImage (std::string image_path)
 
virtual ~MovementFromImage ()
 
- Public Member Functions inherited from shadowrobot::PartialMovement
double get_target (double percentage)
 
 PartialMovement ()
 
virtual ~PartialMovement ()
 

Protected Member Functions

void generate_movement_ ()
 

Protected Attributes

boost::shared_ptr< Magick::Image > image_
 The image from which the movement is generated. More...
 
ssize_t nb_cols_
 The number of columns in the image. More...
 
ssize_t nb_rows_
 The number of rows in the image. More...
 
- Protected Attributes inherited from shadowrobot::PartialMovement
std::vector< double > steps
 

Detailed Description

Definition at line 38 of file movement_from_image.hpp.

Constructor & Destructor Documentation

shadowrobot::MovementFromImage::MovementFromImage ( std::string  image_path)
explicit

Definition at line 35 of file movement_from_image.cpp.

shadowrobot::MovementFromImage::~MovementFromImage ( )
virtual

Definition at line 47 of file movement_from_image.cpp.

Member Function Documentation

void shadowrobot::MovementFromImage::generate_movement_ ( )
protected

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 55 of file movement_from_image.hpp.

ssize_t shadowrobot::MovementFromImage::nb_cols_
protected

The number of columns in the image.

Definition at line 58 of file movement_from_image.hpp.

ssize_t shadowrobot::MovementFromImage::nb_rows_
protected

The number of rows in the image.

Definition at line 60 of file movement_from_image.hpp.


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


sr_movements
Author(s): Ugo Cupcic
autogenerated on Tue Oct 13 2020 03:50:46