Class VideoSocket

Inheritance Relationships

Base Type

Class Documentation

class VideoSocket : public BaseSocket

Class that enables video streaming from the tello and creates and manages the SLAM object if SLAM is enabled.

Public Functions

VideoSocket(asio::io_service &io_service, const std::string &drone_ip, const std::string &drone_port, const std::string &local_port, bool &run, const std::string camera_config_file, const std::string vocabulary_file, const std::string load_map_db_path, const std::string save_map_db_path, const std::string mask_img_path, bool load_map, bool continue_mapping, float scale)

Constructor.

Return
none
Parameters
  • io_service: io_service object used to handle all socket communication
  • drone_ip: ip address of drone
  • drone_port: port number on the drone
  • local_port: port on the local machine used to communicate with the drone port mentioned above
  • run: reference to a bool that is set to off when the Tello object destructor is called
  • camera_config_file: path to camera configuration file
  • vocabulary_file: path to vocabulary file
  • load_map_db_path: path and file name from which the map must be loaded
  • save_map_db_path: path and file name to which the map must be saved
  • mask_img_path: path to pattern mask input images
  • load_map: bool for whether the map should be loaded
  • continue_mapping: continue adding to the map even when a map has been loaded
  • scale: scale for SLAM

~VideoSocket()

Destructor.

Return
none

void setSnapshot()

take a snapshot of the next frame

Return
void