Skip to content

Motion Annotation Program Server

angelxuanchang edited this page Sep 25, 2024 · 3 revisions

The page describes setting up the server for the program based articulation interface that can be used to annotate many assets at once. See Simple Articulation Annotation Server for setting up the server for the simple manual interface.

Setting up the database

See Database setup for how to setup MySQL. See Database setup for how to setup MySQL. Please note that the credentials for the articulations DB (which is separate from the main annotations DB) is specified in server/proj/articulations/index.js dbConfig. Then run server/proj/articulations/create_tables.sql to create tables for annotating articulations

  # run the script in the mysql prompt
  mysql> source server/proj/articulations/create_tables.sql

Program-based articulation annotations

Verification interface

route description method parameters
/verification-viewer/filters/object-category GET source
/verification-viewer/filters/part-labels GET source
/verification-viewer/filters/program-names GET
/verification-viewer/load POST
/verification-viewer/objects GET category, part, type, program, sortBy, sortOption
/verification-viewer/object/parts GET objectId
/verification-viewer/parts/grouped GET category, part
/verification-viewer/parts/count GET source
/verification-viewer/part/render-hash GET partId
/render/hash GET fullId, partIndex
/render/hash POST parts_hash
/get-part-information GET part-ids

Annotation Program

route description method parameters
/articulation-get-programs GET
/articulation-add-program POST name, motionType
/articulation-delete-program POST id
/articulation-rename-program POST id, name
/articulation-duplicate-program POST id, name
/articulation-get-program-motion-identification-rules GET id
/articulation-get-program-motion-parameter-rules GET id
/articulation-set-program-motion-identification-rules POST id , motionIdentificationRules
/articulation-set-program-motion-parameter-rules POST id, motionParameterRules
/articulation-get-program-metadata GET id
Clone this wiki locally