top of page
/**
* @brief Get SSH public key
* @param [out] keygen Public key
* @return Error code
*/
int GetSSHKeygen(ref string keygen);
15.2. Send SCP command
New in version C#SDK-V1.1.4: Web-3.8.3
/**
* @brief Send SCP command
* @param [in] mode 0-Upload (host computer -> controller), 1-Download (controller -> host computer)
* @param [in] sshname Host computer username
* @param [in] sship Host computer IP address
* @param [in] usr_file_url Host computer file path
* @param [in] robot_file_url Robot controller file path
* @return Error code
*/
int SetSSHScpCmd(int mode, string sshname, string sship, string usr_file_url, string robot_file_url);
15.3. Calculate the MD5 value of a file in a specified path
/**
* @brief Calculate the MD5 value of a file in the specified path
* @param [in] file_path File path including file name, default Traj folder path is "/fruser/traj/", such as "/fruser/traj/trajHelix_aima_1.txt"
* @param [out] md5 The MD5 value of the file
* @return Error code
*/
int ComputeFileMD5(string file_path, ref string md5);
15.4. Robot SSH and MD5 command code example
New in version C#SDK-V1.1.4: Web-3.8.3
private void button46_Click(object sender, EventArgs e)
{
string file_path = "/fruser/airlab.lua";
string md5 = "";
byte emerg_state = 0;
byte si0_state = 0;
byte si1_state =