This document introduces the demo project of "robot_health", including how to get and clear the error status information of robot.


Content


IDE Preperation

          (Either one of following)


Download

Win32-Demo



Compiling

  1. Right click on "robot_health" project, set as StartUp project.
  2. Right click on "robot_health", then " Properties",configure "include" and "lib" directories to the corresponding folder path of Slamware SDK.

    It's not necessary to copy files to the project directory, user will only need to configure the path of SDK.


  3. Right click on "robot_status", then "properties",set "Command Arguments" as follows:
    Syntax: robot_health <IP address> 


  4. Press the robot emergency stop button (take emergency stop as an example),Click " F5" to execute.
  5. The error status information could be seen in Robostudio

  6. The output from console will be as follows:

Code