Skip to content

Self-Collision Safety Detection Command Set ​

Set the enabling state of the self-collision safety detection set_self_collision_enable ​

Set the enabling state of the self-collision safety detection. By default, it is disabled.

  • Input parameter
ParameterTypeDescription
set_self_collision_enablestringSet the enabling state of the self-collision safety detection.
set_enablebooltrue: enable, false: disable.
  • Output parameter
ParameterTypeDescription
set_statebooltrue: success, false: failure.
  • Code demo

Input

json
{"command":"set_self_collision_enable","set_enable":false}

Output

json
{
    "command": "set_self_collision_enable",
    "set_state": true
}

Get the enabling state of the self-collision safety detection get_self_collision_enable ​

  • Input parameter
ParameterTypeDescription
get_self_collision_enablestringGet the enabling state of the self-collision safety detection.
  • Output parameter
ParameterTypeDescription
enable_statebooltrue: enable, false: disable.
  • Code demo

Input

json
{"command":"get_self_collision_enable"}

Output

json
{
    "command": "get_self_collision_enable",
    "enable_state": false
}