Skip to content

UrRtdeSafetyStatusBits does not have an entry for 3PE signal #394

@acmorrow

Description

@acmorrow

Affected Client Library version(s)

2.4.0

What combination of platform is the Client Library running on.

Linux

How did you install the Client Library

Build the library from source

Which robot platform is the library connected to.

Real robot

Robot SW / URSim version(s)

N/A

How are you using the Client Library

Others

Issue details

The documentation for the safety_status_bits RTDE field indicates 12 bits (0-11), with the last bit being "is 3PE input active". However, UrRtdeSafetyStatusBits only defines 11 symbols, and lacks an entry for 3PE:

IS_NORMAL_MODE = 0,
IS_REDUCED_MODE = 1,
IS_PROTECTIVE_STOPPED = 2,
IS_RECOVERY_MODE = 3,
IS_SAFEGUARD_STOPPED = 4,
IS_SYSTEM_EMERGENCY_STOPPED = 5,
IS_ROBOT_EMERGENCY_STOPPED = 6,
IS_EMERGENCY_STOPPED = 7,
IS_VIOLATION = 8,
IS_FAULT = 9,
IS_STOPPED_DUE_TO_SAFETY = 10
.

Note that the SafetyStatus enum does have 3PE relevant values:

enum class SafetyStatus : int8_t // Only available on 3.10/5.4
.

So, I think this is just an oversight, but it would be nice if the Bits type included this information.

I'm happy to put together a PR for this if there is agreement that this issue should be fixed.

Relevant log output

Accept Public visibility

  • I agree to make this context public

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions