mavros.ftp module
- class mavros.ftp.FTPFile(*, fm, name, mode)
Bases:
object
FCU file object.
Note that current PX4 firmware only support two connections simultaneously.
- close()
- property closed
- open(path: str, mode: str)
Call open.
- Supported modes:
‘w’: write binary
‘r’: read binary
‘cw’: create excl & write
- read(size: int = 1) bytearray
- seek(offset, whence=0)
- tell()
- truncate(size: int = 0)
- write(bin_data: bytes | bytearray)
- class mavros.ftp.FTPPlugin(parent_node: BaseNode)
Bases:
PluginModule
FTP plugin interface.
- checksum(path: str) int
- property cli_checksum: rclpy.node.Client
- property cli_close: rclpy.node.Client
- property cli_listdir: rclpy.node.Client
- property cli_mkdir: rclpy.node.Client
- property cli_open: rclpy.node.Client
- property cli_read: rclpy.node.Client
- property cli_rename: rclpy.node.Client
- property cli_reset: rclpy.node.Client
- property cli_rmdir: rclpy.node.Client
- property cli_truncate: rclpy.node.Client
- property cli_unlink: rclpy.node.Client
- property cli_write: rclpy.node.Client
- listdir(dir_path: str) List[mavros_msgs.msg.FileEntry]
- mkdir(path: str)
- rename(old_path: str, new_path: str)
- reset_server()
- rmdir(path: str)
- unlink(path: str)