diff --git a/.gitignore b/.gitignore index 4559dfd..879efb0 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ Testing/ *.so.* *.a *.o +.claude/ # Ban ghi va ban do -- nang, khong commit resources/records/* diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..d083fc9 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,91 @@ +# Robotics / CV / ROS Repository Guidance + +This repository may contain robotics, ROS, ROS 2, computer vision, edge AI, embedded, simulation, or deployment code. Treat every project-specific detail as unknown until verified from this repository or from user-provided context. + +## Project Context + +- Read `PROJECT_CONTEXT.md` if present before making assumptions. +- Prefer verified repository facts over generic robotics assumptions. +- If `ROS_TOPIC_MAP.md`, `TF_FRAME_MAP.md`, or `MODEL_DEPLOYMENT_CONTEXT.md` exists, read the relevant file before analyzing related behavior. +- If a context file is missing or incomplete, use `Unknown / needs confirmation` for unverified facts. + +## Discovery Rules + +- Discover package names, node names, launch files, parameters, topics, services, actions, TF frames, model paths, robot names, hardware, and build/test commands from the target repo at usage time. +- Do not invent commands, topics, frames, model paths, hardware, calibration files, accelerators, middleware, operating systems, or deployment targets. +- Generic examples are allowed only when clearly marked as examples. +- Consider both ROS 1 and ROS 2 conventions where relevant. + +## Robotics Engineering Checks + +- Check message contracts, timestamps, coordinate frames, units, calibration, synchronization, QoS or queue settings, lifecycle behavior, launch parameters, and runtime configuration. +- Consider safety, watchdogs, failure modes, degraded sensor input, timing, resource limits, and hardware interaction boundaries. +- For CV and AI code, check image encodings, camera models, preprocessing, postprocessing, model input/output contracts, conversion precision, accelerator support, and runtime memory pressure. + +## Change Discipline + +- Keep edits scoped to the requested task. +- Do not rewrite unrelated launch, configuration, model, or hardware files. +- Preserve user changes and repository conventions. +- At the end, summarize changed files and verification performed. + +## Edit Approval Workflow + +- Before modifying source code, configs, launch files, scripts, build files, docs, templates, or other repository files, present the proposed additions and deletions in diff-style format. +- Explain the expected impact, risks, assumptions, and files that would change. +- Do not edit, create, delete, rename, overwrite, reformat, regenerate, or run modifying commands before explicit user confirmation. +- Read-only inspection commands are allowed before confirmation. +- Treat formatting, code generation, dependency installation, migration, autofix, cleanup, and build-system update commands as modifying commands when they can change files or state. +- Accepted confirmation words include `confirm`, `apply`, `ok`, `yes`, `dong y`, `đồng ý`, `tiep tuc`, `tiếp tục`, and `sửa đi`. +- After applying approved changes, summarize files changed, what changed, validation checks run, and checks not run. + +## Build & Run Handoff Workflow + +- Never execute build, compile, install, launch, train, flash, or long-running commands automatically — foreground or background (`run_in_background`, `&`, `nohup`, `tmux`, `screen`). +- This covers `colcon build`, `catkin_make`, `cmake --build`, `make`, `ninja`, `cargo build`, `pip install`, `npm install`, `docker build`, `docker run`, `roslaunch`, `ros2 launch`, `ros2 run`, `rosbag play/record`, `trtexec`, training scripts, firmware flashing, and any command that needs sudo, GPU, hardware, or more than ~10 seconds. +- Instead, print the exact command for the user to run in their own terminal: working directory, environment prerequisites, the copy-pasteable command, expected success signal, and what to report back. Then stop and wait. +- Read-only inspection commands (`ls`, `cat`, `grep`, `git status`, `git diff`, `ros2 pkg list`, `nvidia-smi`) may still be run directly. +- Suggest `2>&1 | tee /tmp/.log` so the result can be read back from the log file instead of pasted. +- Do not continue writing code that assumes a build passed. Wait for the actual result. +- If the user explicitly asks Claude to run a build command, that override is allowed — run it in the foreground, never backgrounded. +- Full details in the `manual-build-handoff` skill. + +## Output Style — Caveman Mode (Always On) + +Caveman mode is **always active** in this project. Apply `full` level by default to every response. + +**Drop:** articles (a/an/the), filler words (just, really, basically, simply), pleasantries (certainly, great question), hedging (I think, it seems, có lẽ) +**Keep:** all technical substance, code blocks, exact error strings, API names, acronyms, command flags +**Pattern:** `[thing] [action] [reason]. [next step].` +**Language:** match user's language, compress style only. Never announce mode. + +Auto-revert to normal for: security warnings, irreversible action confirmations, multi-step sequences where brevity risks misunderstanding, and text produced by the `humanizer` skill (the rewritten prose is the deliverable — return it in full). Resume caveman after. + +Override anytime: `/caveman lite` (softer) · `/caveman ultra` (harder) · `normal mode` (off) + +## Available Slash Commands + +Use these slash commands for structured robotics engineering tasks: + +- `/project-onboarding` — onboard into this repository and populate PROJECT_CONTEXT.md +- `/read-source-code` — trace source code behavior using repo evidence +- `/robotics-code-review` — review code for behavioral bugs, timing, and integration risks +- `/patch-preview-before-edit` — preview diffs before any file is modified +- `/manual-build-handoff` — hand build/run commands to the user instead of executing them +- `/ros-package-analysis` — analyze ROS package structure and interfaces +- `/ros-topic-debugging` — debug topic issues (publishers, subscribers, QoS, rates) +- `/tf-frame-debugging` — debug TF frame naming, transforms, and timing +- `/rosbag-analysis` — analyze ROS bag data for topics, timing, and sensor quality +- `/cv-pipeline-analysis` — trace CV pipelines from camera input to outputs +- `/edge-ai-deployment` — review model deployment path for edge devices +- `/model-conversion-debugging` — debug ONNX/TRT/TFLite/OpenVINO conversion issues +- `/real-time-performance-profiling` — profile latency, jitter, and resource usage +- `/repo-context-maintainer` — update PROJECT_CONTEXT.md with verified facts +- `/technical-document-reader` — extract engineering facts from technical documents +- `/humanizer` — rewrite AI-sounding prose (README, docs, commit/PR text) without changing what it says +- `/caveman [mode]` — adjust compression level (lite/full/ultra/wenyan) +- `/caveman-commit` — generate terse conventional commit message +- `/caveman-review` — ultra-compressed code review (L: problem. fix.) +- `/caveman-stats` — show estimated token savings this session +- `/caveman-compress ` — compress a markdown memory file +- `/caveman-help` — show all caveman modes and commands diff --git a/PROJECT_CONTEXT.md b/PROJECT_CONTEXT.md new file mode 100644 index 0000000..50a734c --- /dev/null +++ b/PROJECT_CONTEXT.md @@ -0,0 +1,110 @@ +# Project Context + +Use this file for verified target-repository facts only. Keep unknown values as `Unknown / needs confirmation`. + +## Project Identity + +- Project name: `vslam` (CMakeLists.txt:2, version 0.1.0); repo dir `vslam_cpp` +- Robot or system: indoor service robot, differential drive, ZLAC8015D base (README.md:3, configuration_files/sensors.yaml `base:`) +- Primary use case: SLAM + localization for indoor service robot, pure C++, no ROS (README.md:3-4) +- Repository role: rewrite of `~/projects/vSLAM_ws` (ROS 1 Noetic + catkin). Old repo kept as reference and test corpus (README.md:6-7). `../vSLAM_ws` is NOT in this repo. + +## Stack + +- ROS distribution: none. No `package.xml`, no `setup.py`, no ament/catkin anywhere. ROS only appears as data-format compatibility (map_server `.yaml`/`.pgm`, REP-103 frame conventions) and as the reference implementation being replaced. +- ROS variant: N/A +- Operating system: target Ubuntu 22.04 arm64 on Jetson AGX (README.md:4). Dev host is x86 (CMakeLists.txt:54-88, CMakePresets.json `dev`). +- Build system: CMake >= 3.16, C++17, CMakePresets.json v3 (presets `dev`, `asan`, `tsan`, `jetson`). Optional CPack DEB via `VSLAM_ENABLE_CPACK` (cmake/vslam_cpack). +- Main languages: C++17 (libs/, app/, tools/, test/), JavaScript (libs/vslam_web/www/, test/www/), Python 3 (tools/gen_model_colors.py, test/gen_teleop_vectors.py), Bash (tools/*.sh) +- Simulation stack: in-repo `vslam_sim` library — replaces Gazebo. Reads Gazebo `.world` files directly (mesh rasterized to occupancy grid + meshes shipped to 3D web view) or ROS map_server `.yaml` + `.pgm` (README.md:100-186). + +## Repository Layout + +- ROS packages: none. Eight CMake libraries in `libs/`, gated by `VSLAM_BUILD_*` options (CMakeLists.txt:35-42): + - `vslam_common` (P0, ON) — config, log, clock, geometry, TransformTree, Channel, RobotModel, stats + - `vslam_web` (P1, ON) — Boost.Beast HTTP + WebSocket server, RLE, binary codec, embedded www assets + - `vslam_drivers` (P2, ON) — LakiBeam LiDAR, RealSense D410, MCU serial bridge, ZLAC base, record/replay I/O, ScanSanitizer, ClockSync + - `vslam_odometry` (P3, ON) — wheel odometry + EKF SE(2) + - `vslam_safety` (P4, ON) — SafetyMonitor FSM + - `vslam_perception` (P5, ON) — depth_to_cloud, depth_filter, gravity_align, cliff_detect, pipeline + - `vslam_slam` (P6, default **OFF**) — RTAB-Map wrapper, occupancy export, sensor data builder + - `vslam_sim` (ON) — Gazebo-world reader, occupancy map I/O, sim source + - Dependency graph and rationale: libs/CMakeLists.txt:1-13 +- Launch/config locations: no launch files. Wiring is code: `app/src/wiring.cc` is the single place sources connect to stages (app/CMakeLists.txt:4-5, docs/RUNTIME.md). Runtime config: `configuration_files/` — `robot.yaml`, `sensors.yaml`, `pipeline.yaml`, `slam.yaml`, `safety.yaml`, `system.yaml`, plus `master.dcf` (CANopen, generated by `dcfgen`). +- Source locations: `libs//{include/vslam,src}`, `app/src`, `tools/`, vendored SDKs in `libs/vslam_drivers/thirdparty/` (`lakibeam_sdk`, `lidar_core`, `zlac` — copied from `base_kit`, see thirdparty/PROVENANCE.md) +- Test locations: `test/` — GTest binaries, node-level config tests, JS tests in `test/www/`; fixtures in `test/data/`, tolerance baselines in `test/expected/` (12 scenario JSONs) +- Documentation locations: `README.md` (~1000 lines, operational guide), `docs/RUNTIME.md`, `docs/PERCEPTION.md`, `docs/SLAM.md`, `docs/REGRESSION.md`. Config files themselves carry extensive rationale comments — treat them as primary docs. + +## Runtime Interfaces + +- Main nodes: one process — `vslam_node` (`build/app/vslam_node`). Owns all threads and all Channels. Source must be chosen explicitly, no default: `--sim` | `--replay FILE` | `--live` | `--check` (app/src/main.cc:39-69, docs/RUNTIME.md:1-20). + - Tools: `vslam_record`, `vslam_replay`, `vslam_sim_run`, `vslam_slam_bench`, `vslam_web_demo`, `vslam_world_export`, `vslam_lidar_probe`, `probe_rtabmap` +- Topics: none (no middleware). In-process `Channel` (libs/vslam_common/include/vslam/channel.h) replaces pub/sub. External surface is HTTP/WebSocket on port 8080 — e.g. `GET /api/world.bin` (README.md:133-135); token auth is asymmetric by design: engage e-stop needs no token, release e-stop / bumper reset require one (configuration_files/system.yaml `web.auth_token`). +- Services / Actions: none. +- Parameters: YAML only, one file per library. Selected verified values — + - `robot.yaml`: wheel_radius 0.0865 m, wheel_separation 0.400 m, robot_radius 0.24, max_linear 0.35 m/s, max_angular 0.80 rad/s, accel_limit 0.30 m/s², base.cmd_timeout 0.30 s + - `safety.yaml`: scan stop_distance 0.35 m, slow_distance 0.80 m, front_angle 0.5 rad, min_front_rays 20, cliff_hold 3.0 s, sensor_timeout 1.0 s, cmd_timeout 0.5 s (must stay > base.cmd_timeout), bumper escape_linear 0.10 / escape_angular 0.4 + - `pipeline.yaml`: depth_filter 0.22–4.0 m, voxel 0.03 m, 30 Hz in / 10 Hz out; cliff_detect window 1.00–1.50 m (geometric blind zone from level camera at 0.3935 m) + - `slam.yaml`: enabled false, mode localization, Reg/Strategy=1 (ICP), Reg/Force3DoF=true, Optimizer/Strategy=1 (g2o), RGBD/NeighborLinkRefining=false, RGBD/ProximityPathMaxNeighbors=30, Rtabmap/DetectionRate=3, Grid/CellSize 0.05 + - `system.yaml`: web port 8080, status/scan 10 Hz, cloud 2 Hz, path 1 Hz, map_rebuild_rate_hz 4.0; thread priorities safety 50 / driver 45 / estimator 40, safety_rate_hz 20 + - Unknown RTAB-Map keys are a **startup refusal**, not a silent ignore (`BuildRtabmapParams`, slam.yaml:10-16) + - Config dir resolution: `$VSLAM_CONFIG_DIR`, else `/etc/vslam/configuration_files`; resources: `$VSLAM_RESOURCE_DIR`, else `/var/lib/vslam/resources` (libs/vslam_common/include/vslam/node_constants.h) +- TF frames: own `TransformTree`, no tf2. Tree (node_constants.h:44-56, robot.yaml): + `map -> odom -> base_footprint -> base_link -> {laser_link, imu_link, camera_link}`, + `camera_link -> camera_depth_optical_frame | camera_infra1_optical_frame | camera_infra2_optical_frame` + - Three dynamic edges, one writer each: `map->odom` (slam, ~1 Hz), `odom->base_footprint` (EKF, 50 Hz), `base_footprint->base_link` (gravity_align, measured roll/pitch) + - Static: laser_link [0, 0, 0.13] rpy 0 (mount rotation compensated in driver via `angle_offset_deg: -180`, NOT in TF — do not "fix"); imu_link [0, 0, 0.06]; camera_link [0.095, 0, 0.307] rpy 0 (level, not tilted) = 0.3935 m above floor; optical frames rpy [-pi/2, 0, -pi/2] + +## Sensors And Hardware + +- Cameras: RealSense D410 (depth + IR, **no RGB** — left IR doubles as the "rgb" channel for SLAM). 640x480 @ 30 fps, `decimate: 2` with CameraInfo still carrying full-res K (consumers must compensate). Driver `realsense_driver.cc`, built only with `-DVSLAM_WITH_REALSENSE=ON`; sensors.yaml states it is **not yet verified against real hardware**. +- LiDAR: LakiBeam 1L over UDP, bind 0.0.0.0:2368, expected 25 Hz, 270° FOV, range 0.05–40.0 m. Angle convention `theta = (flip ? -alpha : alpha) + angle_offset_deg` with `angle_offset_deg: -180`, `angle_flip: false` (derived twice independently in sensors.yaml:20-60). +- IMU: WT61PC behind an ESP32-S3 MCU on `/dev/ttyACM0` @ 115200 baud, expected 200 Hz. `ClockSync` fits MCU `micros()` to host clock; `McuTimeUnwrapper` is mandatory (uint32 wraps every 71.58 min). +- Compute target: Jetson AGX (arm64); jetson preset uses `CMAKE_PREFIX_PATH=/opt/vslam` and `CMAKE_INSTALL_PREFIX=/opt/vslam`, deps built from source (tools/build_deps.sh referenced by CMakePresets.json:40 — **script not present in repo**). +- Accelerators: none used. No CUDA/TensorRT/OpenCL in the build; all processing is CPU. +- Actuators or robot base: ZLAC8015D dual motor driver over **CANopen on `can0`, node id 1** (not serial), via `liblely-coapp`, gated by `-DVSLAM_WITH_CANOPEN=ON`. DCF at `configuration_files/master.dcf`, path resolved relative to the config dir. `encoder_counts_per_rev: 0` = fall back to 16384 (4096 "wire" x4); the x4 factor is flagged unverified. + +## CV And AI + +- Models: **no learned models in this repo.** No `.onnx`/`.pt`/`.trt`/`.engine`/`.tflite` files exist. `resources/model_colors.json` is a Gazebo *model* color lookup table (median texture color per mesh), generated by `tools/gen_model_colors.py` — not an ML model. +- Model formats: N/A +- Inference runtimes: N/A. Geometric CV only: RTAB-Map (ICP/g2o) + OpenCV + PCL. +- Preprocessing: depth -> `depth_to_cloud` -> `depth_filter` (range gate 0.22–4.0 m, 0.03 m voxel, rate limit to 10 Hz) -> `gravity_align` (complementary filter alpha 0.98, own-acceleration subtraction from odometry) -> cloud in `base_footprint`. Runs inline on the camera thread, not as separate stages (docs/PERCEPTION.md). +- Postprocessing: `cliff_detect` (self-leveling ground fit, window 1.00–1.50 m, fail-safe after 1.0 s) -> cliff flags + edge cloud; SLAM outputs occupancy grid exported via `occupancy_export`, RLE-compressed for the web UI. +- Calibration files: none in the repo. Camera intrinsics come from the device at runtime; `fx = 595.914 @ 640x480` appears only inside comments as the basis for FOV math. Extrinsics live in `robot.yaml` (there is no URDF — deliberately, robot.yaml:1-20). + +## Commands + +All commands below are transcribed from README.md / CMakePresets.json / docs — **not executed during onboarding**. Run them yourself before relying on the outcomes. + +- Environment prerequisite (dev x86): `source tools/dev_env.sh` removes `/opt/MVS` from `LD_LIBRARY_PATH`. The Hikvision MVS SDK ships an old libusb missing `libusb_set_option`, which breaks any link against `libpcl_io`. CMakeLists.txt:59-88 turns this into a FATAL configure error when SLAM or perception is enabled. Also export `VSLAM_CONFIG_DIR=$PWD/configuration_files` and `VSLAM_RESOURCE_DIR=$PWD/resources` when running from the source tree. +- Build command: `cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVSLAM_BUILD_APP=ON -DVSLAM_BUILD_SLAM=ON` then `cmake --build build -j`. Presets: `cmake --preset dev|asan|tsan|jetson`. Optional: `-DVSLAM_WITH_REALSENSE=ON`, `-DVSLAM_WITH_CANOPEN=ON`. `-DVSLAM_BUILD_SLAM=OFF` still builds and runs everything else. +- Test command: `(cd build && ctest)` (README claims 37 tests); `./tools/regress.sh` (12 replay scenarios, README claims ~3 s); `./build/app/vslam_node --check` (config check only, then exit). ThreadSanitizer recipe in docs/RUNTIME.md; `ctest --test-dir build-tsan -LE condvar`. +- Lint command: Unknown / needs confirmation — no `.clang-format`, `.clang-tidy`, or CI configuration in the repo. `tools/pre-push` (install manually as a git hook) runs the regression suite, not a linter. +- Launch examples: + - `./build/app/vslam_node --sim --token t` then open `http://localhost:8080/?token=t` + - `./build/app/vslam_node --sim --world ../vSLAM_ws/src/robot_sim/worlds/hospital.world --x 1.03 --y -25.07 --token t` (that start pose has 4.75 m clearance; origin does not) + - `./build/app/vslam_node --sim --map test/data/maps/hospital.yaml --x -5.99 --y -2.91 --token t` + - Mapping: add `--slam --slam-db --slam-mode mapping`. The DB path must be new every run — mapping into an existing DB is refused at startup (RTAB-Map 0.21.13 throws `UNIQUE constraint failed: Statistics.id` every frame). + - `--live` requires a CANopen build; without it the node refuses to start with an actionable message (app/src/runtime.cc:137-146). +- Bag playback examples: no rosbag. Custom `.vsr` record format — + - record: `./build/tools/vslam_record ...` / `./tools/regress.sh --record` + - replay: `./build/app/vslam_node --replay FILE.vsr`, or `./build/tools/vslam_replay` for flat JSON output compared against `test/expected/` by tolerance + - `.vsr` files are gitignored (~55 MB), regenerated on demand + +## Verification Notes + +- Last inspected by Claude Code: 2026-09-20, branch `master`, HEAD `4ea3268` +- Verified files: CMakeLists.txt, CMakePresets.json, libs/CMakeLists.txt, app/CMakeLists.txt, all `libs/*/CMakeLists.txt` (dependency greps), test/CMakeLists.txt, tools/CMakeLists.txt, all six `configuration_files/*.yaml`, app/src/main.cc, app/src/runtime.cc (source-selection path), libs/vslam_common/include/vslam/node_constants.h, docs/RUNTIME.md, docs/PERCEPTION.md (head), docs/SLAM.md (head), docs/REGRESSION.md (head), README.md:1-260, tools/regress.sh (head), tools/pre-push, libs/vslam_drivers/thirdparty/PROVENANCE.md, .gitignore, build/CMakeCache.txt +- Not verified: no build, test, or run command was executed. Test counts (37) and regression scenario counts (12) are README claims; `test/expected/` does contain 12 JSON baselines. +- Open questions: + 1. `sensors.yaml` `sector_masks` (+/-118 deg) lost their geometric basis when the LiDAR moved to `x = 0.0`. The file says they **must be re-measured before safety is enabled**. Still unresolved. + 2. `encoder_counts_per_rev: 0` -> default 16384 assumes a x4 quadrature factor that `can_help.pdf` does not confirm. Wrong factor = odometry off by 4x. Two-minute measurement procedure is in sensors.yaml. + 3. All EKF and wheel-odometry covariances are datasheet estimates. UMBmark and allan_variance have not been run on this robot (robot.yaml, pipeline.yaml). + 4. No clock-synchronization path exists for the CANopen base: `EncoderReading` stamps are host-clock-at-SDO-read. `ClockSync` only bridges the serial MCU. + 5. RealSense driver unverified on real hardware; `RS2_OPTION_GLOBAL_TIME_ENABLED` on FW 5.17.0.10 unchecked (falls back to TIME_OF_ARRIVAL, a few ms worse). + 6. `safety.yaml` cites `docs/HARDWARE.md` for the hardware motor-cut requirement, but that file does not exist in `docs/`. + 7. `CMakePresets.json` jetson preset cites `tools/build_deps.sh`; that script is not in the repo. + 8. `docs/RUNTIME.md:8` says the `--live` driver is "CHUA viet" (not written), but `app/src/runtime.cc:137-191` wires live LiDAR, MCU, base, and camera behind `VSLAM_HAVE_CANOPEN`. One of the two is stale — likely the doc. + 9. `RGBD/NeighborLinkRefining=false` was tuned against **simulated** odometry (exact to ground truth). Real-robot odometry drifts 1-2%, where ICP link refinement may help. Re-measure on hardware. + 10. Real-hardware symmetric wheel slip is undetectable by the current `|omega_encoder - gyro_z|` test (0 events, 13.29% error in the `slip_sym` regression scenario). diff --git a/configuration_files/master.dcf b/configuration_files/master.dcf new file mode 100644 index 0000000..3b41e54 --- /dev/null +++ b/configuration_files/master.dcf @@ -0,0 +1,337 @@ +[DeviceComissioning] +NodeID=10 +NodeName= +NodeRefd= +Baudrate=1000 +NetNumber=1 +NetworkName= +NetRefd= +CANopenManager=1 +LSS_SerialNumber=0x00000000 + +[DeviceInfo] +VendorName= +VendorNumber=0x00000000 +ProductName= +ProductNumber=0x00000000 +RevisionNumber=0x00000000 +OrderCode= +BaudRate_10=1 +BaudRate_20=1 +BaudRate_50=1 +BaudRate_125=1 +BaudRate_250=1 +BaudRate_500=1 +BaudRate_800=1 +BaudRate_1000=1 +SimpleBootUpMaster=1 +SimpleBootUpSlave=0 +Granularity=1 +DynamicChannelsSupported=0 +GroupMessaging=0 +NrOfRxPDO=0 +NrOfTxPDO=0 +LSS_Supported=1 + +[DummyUsage] +Dummy0001=1 +Dummy0002=1 +Dummy0003=1 +Dummy0004=1 +Dummy0005=1 +Dummy0006=1 +Dummy0007=1 +Dummy0010=1 +Dummy0012=1 +Dummy0013=1 +Dummy0014=1 +Dummy0015=1 +Dummy0016=1 +Dummy0018=1 +Dummy0019=1 +Dummy001A=1 +Dummy001B=1 + +[MandatoryObjects] +SupportedObjects=3 +1=0x1000 +2=0x1001 +3=0x1018 + +[OptionalObjects] +SupportedObjects=26 +1=0x1003 +2=0x1005 +3=0x1006 +4=0x1007 +5=0x1012 +6=0x1013 +7=0x1014 +8=0x1015 +9=0x1016 +10=0x1017 +11=0x1019 +12=0x1028 +13=0x1029 +14=0x102A +15=0x1F25 +16=0x1F55 +17=0x1F80 +18=0x1F81 +19=0x1F82 +20=0x1F84 +21=0x1F85 +22=0x1F86 +23=0x1F87 +24=0x1F88 +25=0x1F89 +26=0x1F8A + +[ManufacturerObjects] +SupportedObjects=0 + +[1000] +ParameterName=Device type +DataType=0x0007 +AccessType=ro +DefaultValue=0x00000000 + +[1001] +ParameterName=Error register +DataType=0x0005 +AccessType=ro + +[1003] +ParameterName=Pre-defined error field +ObjectType=0x08 +DataType=0x0007 +AccessType=ro +CompactSubObj=254 + +[1005] +ParameterName=COB-ID SYNC message +DataType=0x0007 +AccessType=rw +DefaultValue=0x40000080 + +[1006] +ParameterName=Communication cycle period +DataType=0x0007 +AccessType=rw +DefaultValue=10000 + +[1007] +ParameterName=Synchronous window length +DataType=0x0007 +AccessType=rw +DefaultValue=0 + +[1012] +ParameterName=COB-ID time stamp object +DataType=0x0007 +AccessType=rw +DefaultValue=0x00000100 + +[1013] +ParameterName=High resolution time stamp +DataType=0x0007 +AccessType=rw +PDOMapping=1 + +[1014] +ParameterName=COB-ID EMCY +DataType=0x0007 +AccessType=rw +DefaultValue=$NODEID+0x80 + +[1015] +ParameterName=Inhibit time EMCY +DataType=0x0006 +AccessType=rw +DefaultValue=0 + +[1016] +ParameterName=Consumer heartbeat time +ObjectType=0x08 +DataType=0x0007 +AccessType=rw +CompactSubObj=127 + +[1016Value] +NrOfEntries=0 + +[1017] +ParameterName=Producer heartbeat time +DataType=0x0006 +AccessType=rw +DefaultValue=0 + +[1018] +SubNumber=5 +ParameterName=Identity Object +ObjectType=0x09 + +[1018sub0] +ParameterName=Highest sub-index supported +DataType=0x0005 +AccessType=const +DefaultValue=4 + +[1018sub1] +ParameterName=Vendor-ID +DataType=0x0007 +AccessType=ro +DefaultValue=0x00000000 + +[1018sub2] +ParameterName=Product code +DataType=0x0007 +AccessType=ro +DefaultValue=0x00000000 + +[1018sub3] +ParameterName=Revision number +DataType=0x0007 +AccessType=ro +DefaultValue=0x00000000 + +[1018sub4] +ParameterName=Serial number +DataType=0x0007 +AccessType=ro + +[1019] +ParameterName=Synchronous counter overflow value +DataType=0x0005 +AccessType=rw +DefaultValue=0 + +[1028] +ParameterName=Emergency consumer object +ObjectType=0x08 +DataType=0x0007 +AccessType=rw +DefaultValue=0x80000000 +CompactSubObj=127 + +[1028Value] +NrOfEntries=1 +1=0x00000081 + +[1029] +ParameterName=Error behavior object +ObjectType=0x08 +DataType=0x0005 +AccessType=rw +CompactSubObj=254 + +[1029Value] +NrOfEntries=1 +1=0x00 + +[102A] +ParameterName=NMT inhibit time +DataType=0x0006 +AccessType=rw +DefaultValue=0 + +[1F25] +ParameterName=Configuration request +ObjectType=0x08 +DataType=0x0005 +AccessType=wo +CompactSubObj=127 + +[1F55] +ParameterName=Expected software identification +ObjectType=0x08 +DataType=0x0007 +AccessType=rw +CompactSubObj=127 + +[1F80] +ParameterName=NMT startup +DataType=0x0007 +AccessType=rw +DefaultValue=0x00000001 + +[1F81] +ParameterName=NMT slave assignment +ObjectType=0x08 +DataType=0x0007 +AccessType=rw +CompactSubObj=127 + +[1F81Value] +NrOfEntries=1 +1=0x00000305 + +[1F82] +ParameterName=Request NMT +ObjectType=0x08 +DataType=0x0005 +AccessType=rw +CompactSubObj=127 + +[1F84] +ParameterName=Device type identification +ObjectType=0x08 +DataType=0x0007 +AccessType=rw +CompactSubObj=127 + +[1F84Value] +NrOfEntries=1 +1=0x00020192 + +[1F85] +ParameterName=Vendor identification +ObjectType=0x08 +DataType=0x0007 +AccessType=rw +CompactSubObj=127 + +[1F85Value] +NrOfEntries=1 +1=0x00000100 + +[1F86] +ParameterName=Product code +ObjectType=0x08 +DataType=0x0007 +AccessType=rw +CompactSubObj=127 + +[1F86Value] +NrOfEntries=1 +1=0x00000001 + +[1F87] +ParameterName=Revision_number +ObjectType=0x08 +DataType=0x0007 +AccessType=rw +CompactSubObj=127 + +[1F88] +ParameterName=Serial number +ObjectType=0x08 +DataType=0x0007 +AccessType=rw +CompactSubObj=127 + +[1F89] +ParameterName=Boot time +DataType=0x0007 +AccessType=rw +DefaultValue=0 + +[1F8A] +ParameterName=Restore configuration +ObjectType=0x08 +DataType=0x0005 +AccessType=rw +CompactSubObj=127 + +[1F8AValue] +NrOfEntries=0