Skill v1.0.0
currentAutomated scan100/100version: "1.0.0" name: edgematic-ros2-user-package description: Build, deploy, run, and verify an existing user-supplied ROS 2 package or workspace through Edgematic Studio on a paired Modalix DevKit. Use when the user points to their own repository, package.xml, launch file, dependencies, or custom topic contract. Do not use for a hello-world, smoke-test, or standard SiMa demo; use edgematic-ros2-demo instead.
Edgematic ROS 2 User Package
Preserve the user's package and make its actual build/run path work. Do not replace it with a reference demo or generalize from a different repository.
Load edgematic-ros2-portable-pipeline for the detailed workspace, build, deploy, board, and detached-launch mechanics. This skill owns routing, the package contract, and the evidence required before reporting success.
Keep one workspace
Use the workspace the user configured; do not create another workspace beneath it. Keep the shared capability repository once at <workspace>/sima-core and place each application repository or package beside it as <workspace>/<application>. Do not introduce dated validation directories, hello/view grouping layers, or per-application copies of sima-core.
Preserve an existing user repository's internal structure. The direct-child rule controls where that repository is placed, not how its source tree is rewritten. Only use a different root when the user explicitly points to an existing workspace elsewhere.
Establish the real package contract
- Identify the source repository, ROS workspace root, package name, package
type, launch entry point, parameters, expected outputs, and paired device.
- Read
package.xml,CMakeLists.txtorsetup.py, and the launch file before
editing. Resolve symlinks and globbed source paths so changes land in the tree the build really compiles.
- Reuse the package's own model, media, configuration, and topic contract. Ask
only for an irreducible input such as missing device pairing, credentials entered in Studio's secure form, or an unavailable proprietary artifact.
- Treat the board as shared unless the operator says otherwise. Read-only
inspection is safe; rebooting, installing board packages, replacing platform libraries, or stopping an unrelated robot stack needs explicit authorization.
Build and deploy
- Build on the host in Edgematic's ROS 2 SDK container. The board is a runtime
target, not a compiler.
- For a running ROS build, poll
get_build_statusevery 120 seconds. Report
elapsed time, completed/total packages, active package or phase, log activity, failures, and ETA from ros_progress; label an ETA provisional when the package total or first completion is not yet available.
- Use Studio's ROS workspace/build/deploy tools when they support the package.
Otherwise use the repository's checked-in scripts rather than inventing a parallel build wrapper.
- Confirm artifacts, registered components, linked SONAMEs, and package indexes;
a zero build exit alone is insufficient when optional dependencies can silently skip targets.
- Deploy to a path owned by the paired SSH user. Preserve unrelated board files
and record the exact deployed prefix.
- Source the board ROS underlay and deployed prefix deterministically. Do not
assume a generated merge-install setup.* restores the workspace's own prefix; verify AMENT_PREFIX_PATH and LD_LIBRARY_PATH when package discovery fails.
Run without losing the process
- Preflight the exact runtime resources the package uses: ROS domain,
accelerator ownership, model/media paths, disk space, and port availability.
- Stop only a previously recorded instance of this deployment. Prefer saved
PIDs or exact executable identities; never broad-match a full SSH command line.
- Launch detached with stdin closed and stdout/stderr redirected to a durable
log. Verify the process from a second SSH session so a surviving local shell is not mistaken for a surviving workload.
- Start or restart
foxglove_bridgeonly after deploy and after publishers are
live. An in-place deploy can invalidate a running bridge binary.
Prove the outcome at three levels
- Advertised: expected nodes and topics exist with the expected types.
- Active: current logs advance and a fresh
ros2 topic hzsample is non-zero. - Visible: the bridge log shows a subscription for the exact panel topic
and Edgematic/Flora renders current frames or messages.
Do not report success from PIDs, topic names, channel advertisements, or an old rate sample. For file input, also prove that the source loops or state the finite end time; an alive node after pull: route closed is not an active pipeline.
The latest evidence supersedes earlier success. If a prior rate was non-zero but the current log shows a closed source route with no later decode/result lines, report the package as inactive until a fresh rate proves otherwise.
Visualization
- Prefer the package's renderable standard message topics. Structured detections
and image output are separate evidence; preserve both.
- Match the served Edgematic layout, not a source file that is not in the
installed bundle. If it selects /compressed, require those topics or deliberately select a raw topic.
- Raw 1280x720 BGR8 video is about 2.8 MB per frame. Across a VPN, publish a
paced, compressed or downsampled viewer topic rather than opening multiple full-rate raw subscriptions.
- A channel advertised by the bridge is not proof of a browser subscription.
Verify created ROS subscription on <topic> in the current bridge log.
- Do not claim a quick action or auto-open directive selected panels unless its
actual schema carries panel/topic fields. Verify the installed view's selected topics.
- If a custom message is listed but
ros2 topic echocannot load its type, add
the deployed Python package directory to PYTHONPATH before diagnosing the publisher.
- If overlay publication is detection-conditional, judge gaps alongside raw
images and structured detections, and record that contract in the handoff.
Hand off
Report the source revision, build/deploy prefix, launch identity, current rates, visible topics, bridge subscription evidence, files changed, and any remaining product gap. Keep credentials and raw logs out of durable summaries.