This document introduces the demo project of "go_sensor_value", including how to get the data of sersors like type,installation position and value.


Content


IDE Preperation

          (Either one of following)


Download

Win32-Demo



Compiling

  1. Right click on "get_sensor_value" project, set as StartUp project.


  2. Right click on "get_sensor_value", 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 "get_sensor_value", then "properties",set "Command Arguments" as follows: 
    Syntax :get_sensor_value <IP address>> 


  4. Click " F5" to execute.
  5. The output from console will be as follows(0, 1 is used to indicate the trigger state of the bumper. If it's triggered, the value is 0.):

Code