|
superquadric-model
|
This class shows the point cloud used for modeling or the estimated superquadric overlapped on the camera image and in real time. More...
#include <superqVisualization.h>
Inherits RateThread.
Public Member Functions | |
| SuperqVisualization (int rate, const std::string &_eye, const std::string &_what_to_plot, yarp::sig::Vector &_x, yarp::sig::Vector &_x_filtered, std::deque< int > &_Color, yarp::dev::IGazeControl *_igaze, const yarp::sig::Matrix _K, std::deque< yarp::sig::Vector > &_points, const int &_vis_points, const int &_vis_step) | |
| bool | showPoints () |
| Show point cloud on the image. More... | |
| bool | showSuperq (yarp::sig::Vector &x_to_show) |
| Show reconstructed superquadric on the image. More... | |
| yarp::sig::Vector | from3Dto2D (const yarp::sig::Vector &point3D) |
| Compute 2D pixels from 3D points. More... | |
| virtual bool | threadInit () |
| Init function of RateThread. | |
| virtual void | run () |
| Run function of RateThread. | |
| void | interruptPorts () |
| Interrupt ports functionalities. | |
| virtual void | threadRelease () |
| Release function of RateThread. | |
| void | setPar (const std::string &par_name, const std::string &value) |
| Set a given parameter equal to a string. More... | |
| void | setPar (const std::string &par_name, const int &value) |
| Set a given parameter equal to a desired value. More... | |
| void | setColor (const int &r, const int &g, const int &b) |
| Set color for visualization. More... | |
| void | setPar (const yarp::os::Property &newOptions, bool first_time) |
| Set parameters for visualization. More... | |
| yarp::os::Property | getPar () |
| Get parameters for visualization. More... | |
| double | getTime () |
| Get time required for visualization. More... | |
Data Fields | |
| yarp::sig::Vector & | superq |
| Estimated superquadric. | |
| yarp::sig::Vector & | superq_filtered |
| Filtered superquadric. | |
| std::deque< yarp::sig::Vector > & | points |
| Object point cloud. | |
| yarp::sig::ImageOf< yarp::sig::PixelRgb > * | imgIn |
| Input image. | |
Protected Attributes | |
| yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelRgb > > | portImgIn |
| Input image port. | |
| yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelRgb > > | portImgOut |
| Output image port *. | |
| int | r |
| R value for visualization. | |
| int | g |
| Green value for visualization. | |
| int | b |
| Blue value for visualization. | |
| double | t_vis |
| Time for visualization. | |
| int | vis_points |
| Number of points used for visualization. | |
| int | vis_step |
| Number of visualization step. | |
| std::string | what_to_plot |
| String used for deciding what to plot: "points" or "superq". | |
| yarp::sig::Vector | point |
| yarp::sig::Vector | point1 |
| yarp::sig::Vector | point2D |
| std::deque< int > | Color |
| std::string | eye |
| Eye camera selected. | |
| yarp::sig::Matrix | R |
| yarp::sig::Matrix | H |
| yarp::sig::Matrix | K |
| yarp::dev::IGazeControl * | igaze |
| Gaze Control interface. | |
| yarp::os::Mutex | mutex |
This class shows the point cloud used for modeling or the estimated superquadric overlapped on the camera image and in real time.
Definition at line 36 of file superqVisualization.h.
| Vector SuperqVisualization::from3Dto2D | ( | const yarp::sig::Vector & | point3D | ) |
Compute 2D pixels from 3D points.
| point3D | is the 3D point to be converted |
Definition at line 168 of file superqVisualization.cpp.
Referenced by showPoints(), and showSuperq().
| Property SuperqVisualization::getPar | ( | ) |
Get parameters for visualization.
Definition at line 330 of file superqVisualization.cpp.
References eye, vis_points, vis_step, and what_to_plot.
| double SuperqVisualization::getTime | ( | ) |
Get time required for visualization.
Definition at line 349 of file superqVisualization.cpp.
References t_vis.
| void SuperqVisualization::setColor | ( | const int & | r, |
| const int & | g, | ||
| const int & | b | ||
| ) |
Set color for visualization.
| r | is the red component |
| g | is the green component |
| b | is the blue component |
| void SuperqVisualization::setPar | ( | const std::string & | par_name, |
| const std::string & | value | ||
| ) |
Set a given parameter equal to a string.
| par_name | is the name of the parameter to be changed |
| value | is the new value |
| void SuperqVisualization::setPar | ( | const std::string & | par_name, |
| const int & | value | ||
| ) |
Set a given parameter equal to a desired value.
| par_name | is the name of the parameter to be changed |
| value | is the new value |
| void SuperqVisualization::setPar | ( | const yarp::os::Property & | newOptions, |
| bool | first_time | ||
| ) |
Set parameters for visualization.
| newOptions | is a Property with the new options to set |
| first_time | takes into account if the options have already been set or not |
| bool SuperqVisualization::showPoints | ( | ) |
Show point cloud on the image.
Definition at line 117 of file superqVisualization.cpp.
References eye, from3Dto2D(), igaze, imgIn, points, portImgOut, and vis_step.
Referenced by run().
| bool SuperqVisualization::showSuperq | ( | yarp::sig::Vector & | x_to_show | ) |
Show reconstructed superquadric on the image.
| x_to_show | is the superquadric to be shown |
Definition at line 39 of file superqVisualization.cpp.
References eye, from3Dto2D(), igaze, imgIn, portImgOut, and vis_points.
Referenced by run().
1.8.14