Class TelloCameraManager

Class Documentation

class TelloCameraManager

Public Functions

TelloCameraManager(std::shared_ptr<TelloCommandSender> tello_command_sender, const std::string &stream_url = "udp://0.0.0.0:11111")

Construct a new TelloCameraManager object.

Parameters:
  • tello_ip – IP of the tello drone

  • port_command – Port of the client to send the command

~TelloCameraManager()

Destroy the TelloCameraManager object.

bool setVideoStream(const bool enable, const std::string &stream_url)

Enable/Disable the camera video stream.

Parameters:
  • enable – Enable/Disable the camera

  • stream_url – URL of the video stream

Returns:

true if was correctly set

const cv::Mat &getFrame()

Get the frame from the video stream.

Returns:

cv::Mat Frame from the video stream