|
MoveIt Pro API
Core Behaviors for MoveIt Pro
|
Functions | |
| tl::expected< std::string, std::string > | readProcessMaps () |
| Read the full text of /proc/self/maps. | |
|
inline |
Read the full text of /proc/self/maps.
Exposed only so tests can assert on the live process's actual maps content (e.g. that a fork-linked test binary really shows the fork loaded) rather than only on the pass/fail outcome of processHasMixedBehaviorTreeLibraries(). Not part of the supported API surface.
A robot-motion startup guard must fail closed on an inconclusive result, not just on a positive detection (see AGENTS.md). A partial or failed read of /proc/self/maps must not silently look like a clean "no mixed load" result, so this checks the stream for read errors and rejects an empty read — a live process's maps listing is never empty.