#include <movement_from_image.hpp>
Definition at line 38 of file movement_from_image.hpp.
◆ MovementFromImage()
| shadowrobot::MovementFromImage::MovementFromImage |
( |
std::string |
image_path | ) |
|
|
explicit |
◆ ~MovementFromImage()
| shadowrobot::MovementFromImage::~MovementFromImage |
( |
| ) |
|
|
virtual |
◆ generate_movement_()
| 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.
◆ image_
◆ nb_cols_
| ssize_t shadowrobot::MovementFromImage::nb_cols_ |
|
protected |
◆ nb_rows_
| ssize_t shadowrobot::MovementFromImage::nb_rows_ |
|
protected |
The documentation for this class was generated from the following files: