Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Some perception contents support indexing. The perception contents which can be indexed are:

  • Bound
  • Zone
  • Road
  • Wind
  • RBD emitter
  • etc...

On each one of these perception contents, there usually usually there is an attribute XXX ID, such as Bound ID or Road ID. The channel name can sentence can be modified to such asI'm in bound[2].in, road[0] .x or point to my LEFT or I'm in zone[15].d. If the channel sentence name have ID, it can only percept precept and interact with the perception contents with the same ID, for example, road[3] .ox point to my RIGHT can only fetch results from the road which Road ID is 3.

For example, bound is one kind of them. Please notice there is a Bound ID attribute on each bound.



Bound ID attribute can be any positive value (including 0)

We can simplify use I'm in bound[0].in to  to test whether current agent in bound which Bound ID is 0. So modified from the previous bound example, the results will be:

  • Return 1 for agent A, because only A is inside of bound which ID is 0
  • Return 0 for agent B, C, D and E

 


Bound channel sentences with indexing techniquestechnique