Tandysony / opensim4opencog

Exported from code.google.com/p/opensim4opencog
2 stars 2 forks source link

simObject not behaving consistently #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
we should be consistent with the naming scheme users expect (rather than what 
libOMV does).

simObject

gives every prim, but the name suggests it gives every root. In normal 
terminology an object is a linkset or unlinked prim.

simRootObject

would, one expects, give only root objects, but actually gives all objects

in an empty region rez two prims, name one achild and the other aroot and link 
them so aroot is the root

Log a bot on, and

 ?- 
|    simObject(X),cli_get(X, [prim,properties,name],Y).
X = @'C#66709672',
Y = "aroot" ;
X = @'C#66709536',
Y = "achild" ;
X = @'C#66709464',
Y = "RegionSay4200" ;
false.

2 ?- simObject(X),cli_get(X, [prim,properties,name],Y).
X = @'C#66709672',
Y = "aroot" ;
X = @'C#66709536',
Y = "achild" ;
false.

EXPECTED: name would be different or this would just see root
OBSERVED: sees all prims

3 ?- simRootObject(X),cli_get(X, [prim,properties,name],Y).
Correct to: "cogrobot:simRootObject(X)"? yes
X = @'C#66709672',
Y = "aroot" ;
X = @'C#66709536',
Y = "achild" ;
false.

EXPECTED: would just see root
OBSERVED:  sees all prims

Original issue reported on code.google.com by anneogb...@gmail.com on 6 May 2012 at 5:43

GoogleCodeExporter commented 9 years ago
%% grid_object(?Ele).
% get each SimObject derezed or not
% this is every primitive, linked or not, as a complex term

%% world_object(?Ele).
% get each SimObject in world except attachments

%% world_root_object(?Ele).
% get each SimObject in world except child objects

Original comment by logicmoo@gmail.com on 1 Jul 2012 at 8:33