Class VideoSocket¶
- Defined in File video_socket.hpp
Inheritance Relationships¶
Base Type¶
public BaseSocket
(Class BaseSocket)
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 communicationdrone_ip
: ip address of dronedrone_port
: port number on the dronelocal_port
: port on the local machine used to communicate with the drone port mentioned aboverun
: reference to a bool that is set to off when the Tello object destructor is calledcamera_config_file
: path to camera configuration filevocabulary_file
: path to vocabulary fileload_map_db_path
: path and file name from which the map must be loadedsave_map_db_path
: path and file name to which the map must be savedmask_img_path
: path to pattern mask input imagesload_map
: bool for whether the map should be loadedcontinue_mapping
: continue adding to the map even when a map has been loadedscale
: scale for SLAM
-
~VideoSocket
()¶ Destructor.
- Return
- none
-
void
setSnapshot
()¶ take a snapshot of the next frame
- Return
- void
-