Skip to main content

Socket

The Socket node is the communication node of Roban. Currently, applications for external communication with the robot include: iPad tablet control, Roban desktop software, back button trigger cases, and voice control, etc.

Executing Example Scripts

  • Socket Interface for Executing Examples

    • exec_download_file

      {
      "cmd": "exec_download_file",
      "path": "robot_ros_application/catkin_ws/src/ros_actions_node/scripts/xxx.py"
      }

      No return value.

  • This is the interface for the Socket to run Python scripts. The script is by default placed in the robot_ros_application/catkin_ws/src/ros_actions_node/scripts folder. If you want to run a custom Python script, you can download the example script, and it is still recommended to download it to the default folder.

Downloading Example Scripts

  • You can download and edit action files to the robot through the Roban desktop software.

  • The download of the Roban desktop software is completed via the scp tool.

    • If you want to transfer a file from outside the robot system and want to call it through an iPad, voice, or other means, you can upload your Python script to the robot_ros_application/catkin_ws/src/ros_actions_node/scripts folder.

      • You can use the following command: scp target.py lemon@{robot_ip}:~/robot_ros_application/catkin_ws/src/ros_actions_node/scripts

      • Replace {robot_ip} with the IP address of the robot you are using.