#include <world_scoped_maps.h>
|
| template<typename T > |
| void | circle (T &map, const Point2D &p, int radius, const cv::Scalar &color, int thickness=1, int lineType=CV_AA) const |
| |
| template<typename T > |
| cv::Scalar_< T > | get (cv::Mat_< T > &map, const Point2D &p) const |
| |
| int | height () const |
| |
| std::string | infoHeader () const |
| |
| void | init (int width_pixel, int height_pixel, double min_y, double max_y, double min_x, double max_x, double rotation=0) |
| |
| template<typename T > |
| void | init (const T &metadata) |
| |
| bool | initialized () |
| |
| template<typename T > |
| void | line (T &map, const Point2D &p0, const Point2D &p1, const cv::Scalar &color, int thickness=1, int lineType=CV_AA) const |
| |
| Point2D | m2w (const Point2D &src) const |
| |
| Point2D | m2w (double x, double y) const |
| |
| Point2D & | m2w (const Point2D &src, Point2D &des) const |
| |
| double | max_x () const |
| |
| double | max_y () const |
| |
| double | min_x () const |
| |
| double | min_y () const |
| |
| const cv::Matx33d & | Mm2w () const |
| |
| const cv::Matx33d & | Mw2m () const |
| |
| WorldScopedMaps & | operator= (const WorldScopedMaps &)=default |
| |
| WorldScopedMaps & | operator= (WorldScopedMaps &&)=default |
| |
| double | scale_w2m (double v) const |
| |
| double | scale_x () const |
| |
| double | scale_y () const |
| |
| Point2D | w2m (const Point2D &src) const |
| |
| Point2D | w2m (double x, double y) const |
| |
| Point2D & | w2m (const Point2D &src, Point2D &des) const |
| |
| int | width () const |
| |
| | WorldScopedMaps () |
| |
| | WorldScopedMaps (const WorldScopedMaps &)=default |
| |
| | WorldScopedMaps (WorldScopedMaps &&)=default |
| |
| virtual | ~WorldScopedMaps ()=default |
| |
|
| void | init () |
| | initializes the transformation matrices More...
|
| |
class to visualize information using OpenCV matrices
Definition at line 17 of file world_scoped_maps.h.
◆ WorldScopedMaps() [1/3]
| WorldScopedMaps::WorldScopedMaps |
( |
| ) |
|
◆ ~WorldScopedMaps()
| virtual tuw::WorldScopedMaps::~WorldScopedMaps |
( |
| ) |
|
|
virtualdefault |
◆ WorldScopedMaps() [2/3]
◆ WorldScopedMaps() [3/3]
◆ circle()
template<typename T >
| void tuw::WorldScopedMaps::circle |
( |
T & |
map, |
|
|
const Point2D & |
p, |
|
|
int |
radius, |
|
|
const cv::Scalar & |
color, |
|
|
int |
thickness = 1, |
|
|
int |
lineType = CV_AA |
|
) |
| const |
|
inline |
draws a circle given in the visualization space (meter, ....) into a pixel map
- Parameters
-
| map | opencv matrix |
| p | location |
| radius | radius |
| color | color –> |
- See also
- opencv
- Parameters
-
| thickness | line thickness –> |
- See also
- opencv
- Parameters
-
- See also
- opencv
Definition at line 108 of file world_scoped_maps.h.
◆ get()
template<typename T >
| cv::Scalar_<T> tuw::WorldScopedMaps::get |
( |
cv::Mat_< T > & |
map, |
|
|
const Point2D & |
p |
|
) |
| const |
|
inline |
return a copy of the value located at p in the visual space (meter, ....)
- Parameters
-
| map | opencv matrix |
| p | location |
Definition at line 118 of file world_scoped_maps.h.
◆ height()
| int WorldScopedMaps::height |
( |
| ) |
const |
◆ infoHeader()
| std::string WorldScopedMaps::infoHeader |
( |
| ) |
const |
returns information about the maps metadata
- Parameters
-
| format | using printf format |
- Returns
- string
Definition at line 109 of file world_scoped_maps.cpp.
◆ init() [1/3]
| void WorldScopedMaps::init |
( |
| ) |
|
|
private |
◆ init() [2/3]
| void WorldScopedMaps::init |
( |
int |
width_pixel, |
|
|
int |
height_pixel, |
|
|
double |
min_y, |
|
|
double |
max_y, |
|
|
double |
min_x, |
|
|
double |
max_x, |
|
|
double |
rotation = 0 |
|
) |
| |
used to initialize the figure
- Parameters
-
| width_pixel | pixel size of the canvas |
| height_pixel | pixel size of the canvas |
| min_y | minimal y of the visualized space |
| max_y | maximal y of the visualized space |
| min_x | minimal x of the visualized space |
| max_x | maximal x of the visualized space |
| rotation | rotation of the visualized spaces |
Definition at line 44 of file world_scoped_maps.cpp.
◆ init() [3/3]
template<typename T >
| void tuw::WorldScopedMaps::init |
( |
const T & |
metadata | ) |
|
|
inline |
used to initialize the figure based on a ROS nav_msgs/MapMetaData
- Parameters
-
Definition at line 54 of file world_scoped_maps.h.
◆ initialized()
| bool WorldScopedMaps::initialized |
( |
| ) |
|
◆ line()
template<typename T >
| void tuw::WorldScopedMaps::line |
( |
T & |
map, |
|
|
const Point2D & |
p0, |
|
|
const Point2D & |
p1, |
|
|
const cv::Scalar & |
color, |
|
|
int |
thickness = 1, |
|
|
int |
lineType = CV_AA |
|
) |
| const |
|
inline |
draws a line given in the visualization space (meter, ....) into a pixel map
- Parameters
-
| map | opencv matrix |
| p0 | start point |
| p1 | end point |
| color | color –> |
- See also
- opencv
- Parameters
-
| thickness | line thickness –> |
- See also
- opencv
- Parameters
-
- See also
- opencv
Definition at line 95 of file world_scoped_maps.h.
◆ m2w() [1/3]
transforms a point from the image space to visualization space (map -> world)
- Parameters
-
| src | point in image space (map [pixel]) |
- Returns
- point in visualization space (world)
Definition at line 71 of file world_scoped_maps.cpp.
◆ m2w() [2/3]
| Point2D WorldScopedMaps::m2w |
( |
double |
x, |
|
|
double |
y |
|
) |
| const |
transforms a point from the image space to visualization space (map -> world)
- Parameters
-
| x | x coordinate in image space eg. [pixel] |
| y | y coordinate in image space eg. [pixel] |
- Returns
- point in visualization space (world) eg. [m]
Definition at line 74 of file world_scoped_maps.cpp.
◆ m2w() [3/3]
transforms a point from the image space to visualization space (map -> world)
- Parameters
-
| src | point in image space (map [pixel]) |
| des | point in visualization space (world) |
- Returns
- reference to des
Definition at line 77 of file world_scoped_maps.cpp.
◆ max_x()
| double WorldScopedMaps::max_x |
( |
| ) |
const |
◆ max_y()
| double WorldScopedMaps::max_y |
( |
| ) |
const |
◆ min_x()
| double WorldScopedMaps::min_x |
( |
| ) |
const |
◆ min_y()
| double WorldScopedMaps::min_y |
( |
| ) |
const |
◆ Mm2w()
| const cv::Matx33d & WorldScopedMaps::Mm2w |
( |
| ) |
const |
- Returns
- transformation matrix from the image space to visualization space (map -> world)
Definition at line 58 of file world_scoped_maps.cpp.
◆ Mw2m()
| const cv::Matx33d & WorldScopedMaps::Mw2m |
( |
| ) |
const |
- Returns
- transformation matrix from the visualization space to image space (world -> map)
Definition at line 55 of file world_scoped_maps.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ scale_w2m()
| double WorldScopedMaps::scale_w2m |
( |
double |
v | ) |
const |
◆ scale_x()
| double WorldScopedMaps::scale_x |
( |
| ) |
const |
◆ scale_y()
| double WorldScopedMaps::scale_y |
( |
| ) |
const |
◆ w2m() [1/3]
transforms a point from the visualization space to image space (world -> map)
- Parameters
-
| src | point in visualization space (world) |
- Returns
- point in image space (map [pixel])
Definition at line 61 of file world_scoped_maps.cpp.
◆ w2m() [2/3]
| Point2D WorldScopedMaps::w2m |
( |
double |
x, |
|
|
double |
y |
|
) |
| const |
transforms a point from the visualization space to image space (world -> map)
- Parameters
-
| x | x coordinate in visualization space (world) eg. [m] |
| y | y coordinate in visualization space (world) eg. [m] |
- Returns
- point in image space eg. [pixel]
Definition at line 64 of file world_scoped_maps.cpp.
◆ w2m() [3/3]
transforms a point from the visualization space to image space (world -> map)
- Parameters
-
| src | point in visualization space (world) |
| des | point in image space (map [pixel]) |
- Returns
- reference to des
Definition at line 67 of file world_scoped_maps.cpp.
◆ width()
| int WorldScopedMaps::width |
( |
| ) |
const |
◆ dx_
| double tuw::WorldScopedMaps::dx_ |
|
private |
◆ dy_
| double tuw::WorldScopedMaps::dy_ |
|
private |
◆ height_pixel_
| int tuw::WorldScopedMaps::height_pixel_ |
|
private |
◆ max_x_
| double tuw::WorldScopedMaps::max_x_ |
|
private |
◆ max_y_
| double tuw::WorldScopedMaps::max_y_ |
|
private |
◆ min_x_
| double tuw::WorldScopedMaps::min_x_ |
|
private |
◆ min_y_
| double tuw::WorldScopedMaps::min_y_ |
|
private |
◆ Mm2w_
| cv::Matx33d tuw::WorldScopedMaps::Mm2w_ |
|
private |
◆ Mw2m_
| cv::Matx33d tuw::WorldScopedMaps::Mw2m_ |
|
private |
◆ mx_
| double tuw::WorldScopedMaps::mx_ |
|
private |
◆ my_
| double tuw::WorldScopedMaps::my_ |
|
private |
◆ ox_
| double tuw::WorldScopedMaps::ox_ |
|
private |
◆ oy_
| double tuw::WorldScopedMaps::oy_ |
|
private |
◆ rotation_
| double tuw::WorldScopedMaps::rotation_ |
|
private |
◆ sx_
| double tuw::WorldScopedMaps::sx_ |
|
private |
◆ sy_
| double tuw::WorldScopedMaps::sy_ |
|
private |
◆ width_pixel_
| int tuw::WorldScopedMaps::width_pixel_ |
|
private |
The documentation for this class was generated from the following files: