Interface for file transfer with the robot. The robot must be put into IDLE mode when transferring files.
More...
#include <file_io.hpp>
|
| FileIO (const Robot &robot) |
| [Non-blocking] Create an instance and initialize file transfer interface. More...
|
|
void | UploadTrajFile (const std::string &file_dir, const std::string &file_name) |
| [Blocking] Upload a trajectory file (.traj) to the robot. More...
|
|
Interface for file transfer with the robot. The robot must be put into IDLE mode when transferring files.
Definition at line 19 of file file_io.hpp.
◆ FileIO()
flexiv::rdk::FileIO::FileIO |
( |
const Robot & |
robot | ) |
|
[Non-blocking] Create an instance and initialize file transfer interface.
- Parameters
-
- Exceptions
-
std::runtime_error | if the initialization sequence failed. |
◆ UploadTrajFile()
void flexiv::rdk::FileIO::UploadTrajFile |
( |
const std::string & |
file_dir, |
|
|
const std::string & |
file_name |
|
) |
| |
[Blocking] Upload a trajectory file (.traj) to the robot.
- Parameters
-
[in] | file_dir | Relative or absolute path of the directory that contains the file to upload, e.g. /home/user/Documents/. Do not include the file name here. |
[in] | file_name | Full name of the trajectory file to upload, including the suffix, e.g. PolishSpiral.traj. Do not include the directory path here. |
- Exceptions
-
std::invalid_argument | if failed to find or load the specified file. |
std::logic_error | if robot is not in the correct control mode. |
std::runtime_error | if failed to transfer the file. |
- Note
- Applicable control modes: IDLE.
-
This function blocks until the file is successfully uploaded.
The documentation for this class was generated from the following file: