104 bool move(
char direction,
int speed = 5);
110 bool rotate(
char direction,
int speed = 5);
137 bool goHome(
bool dock,
int speed = 5);
std::thread m_videoThread
bool getNextImageSync(mrpt::obs::CObservationImage::Ptr &lastImage)
Returns the next frame from Rovio's live video stream, after starting the live streaming with retriev...
bool getEncoders(TEncoders &encoders)
Returns a TEncoders with information of Rovio encoders (since last read, it seems Rovio is continuous...
bool send_cmd_action(int act, int speed)
bool path_management(int act)
bool rotate(char direction, int speed=5)
rotate send Rovio the command to rotate in the specified direcction 'r'->right, 'l'->left ...
bool pathDelete(const std::string &path_name)
bool m_videothread_initialized_error
bool m_videothread_initialized_done
Contains classes for various device interfaces.
mrpt::img::TCamera cameraParams
bool getPosition(mrpt::math::TPose2D &out_pose)
Returns the Rovio's pose.
bool pathGetList(std::string &path_list)
Get list of saved paths.
bool m_videothread_finished
A class to interface a Rovio robot (manufactured by WowWee).
This class allows loading and storing values and vectors of different types from a configuration text...
bool move(char direction, int speed=5)
move send Rovio the command to move in the specified direcction
bool captureImageAsync(mrpt::img::CImage &out_img, bool recttified)
Returns a snapshot from Rovio, if rectified is set true, the returned image is rectified with the par...
void initialize()
Establish Connection with Rovio and log in its system: Important, fill out "options" members BEFORE c...
void thread_video()
This function takes a frame and waits until getLastImage ask for it, and so on.
bool isVideoStreamming() const
Return true if video is streaming correctly.
Structure to hold the parameters of a pinhole camera model.
bool retrieve_video()
This function launchs a thread with the function "thread_video()" which gets frames into a buffer...
GLsizei const GLchar ** string
struct mrpt::hwdrivers::CRovio::TEncoders encoders
bool stop_video()
This function stops and joins the thread launched by "retrieve_video()".
bool getRovioState(TRovioState &state)
Returns a TRovioState with internal information of Rovio (State, Navigation Signal Strength...
bool m_videothread_must_exit
bool takeHeadUp()
Head positions.
bool pathRecordSave(const std::string &path_name)
bool goHome(bool dock, int speed=5)
goHome(bool dock) drives Rovio in front of charging station if the paremeter dock is set to false...
struct mrpt::hwdrivers::CRovio::TOptions options
bool general_command(int act, std::string &response, std::string &errormsg)
void loadConfig(const mrpt::config::CConfigFileBase &configSource, const std::string §ion)
Loads the rovio camera calibration parameters (of leave the default ones if not found) (See CGenericS...
bool pathRename(const std::string &old_name, const std::string &new_name)
A class for storing images as grayscale or RGB bitmaps.
mrpt::obs::CObservationImage::Ptr buffer_img