Skip to content

System Information Service Interface

FunctionC++ROS
Get motion control software version
Get name of the currently controlled robot

Get Motion Control Software Version

C++ Interface

Function Name:rcClientInterfaceGetMcVersion

cpp
/**
 * @brief Get the version of the motion controller software.
 * 
 * This function is used to retrieve the software version of the specified motion controller.
 * 
 * @param index The index of the motion controller.
 * @return std::string The software version of the motion controller.
 */
std::string rcClientInterfaceGetMcVersion(const int& index);

Example Usage:

cpp
int mc_index = 0;
std::string mc_version = rcClientInterfaceGetMcVersion(mc_index);
std::cout << "Motion Controller Version: " << mc_version << std::endl;

Get Name of the Controlled Robot

C++ Interface

Function Name:rcClientInterfaceGetRobotName

cpp
/**
 * @brief Get the name of the currently controlled robot.
 * 
 * This function retrieves the name of the robot controlled by the specified robot controller.
 * 
 * @param index The index of the robot controller.
 * @return std::string The name of the robot.
 */
std::string rcClientInterfaceGetRobotName(const int& index);

Example Usage:

cpp
int robot_index = 0;
std::string robot_name = rcClientInterfaceGetRobotName(robot_index);
std::cout << "Robot Name: " << robot_name << std::endl;