theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

Expose `trackerId` to GEMSCRIPT - [merged] #725

Closed benloh closed 1 year ago

benloh commented 2 years ago

Merges dev-bl/script-pozyx-id -> dev-next

Request: "Add ability to "Script access to pozyx ID (so we can change name or other properties based on specific ags)"

This adds a new trackerId property to agents. You can check the property and take action. TrackerIds should correspond to both the Pozyx tag id and the PTrack id. If the agent is not linked to a tracker object, it will fall back to using the agent name, e.g. Fish5.

For example, to assign a trackerId to a specific name, you could use this:

ifProp agent.trackerId equal '7120' [[
  featProp TestKeywordAgent.AgentWidgets.text setTo 'Joshua'
]]

Alternatively, you could set it directly (since textProp refers to an agent prop):

featProp TestKeywordAgent.AgentWidgets.textProp setTo 'trackerId'
benloh commented 2 years ago

requested review from @jdanish

benloh commented 2 years ago

added 1 commit

Compare with previous version

benloh commented 2 years ago

added 1 commit

Compare with previous version

benloh commented 2 years ago

added 1 commit

Compare with previous version

benloh commented 2 years ago

added 2 commits

Compare with previous version

benloh commented 2 years ago

mentioned in commit 4b9e77c9a386c14f51a3ccbf74787192789c00c1