acfr / snark

generic c++ libraries and utilities for robotics
Other
69 stars 41 forks source link

view-points: shape=file.obj has odd defaults for angles if not specified #43

Closed junderwood closed 11 years ago

junderwood commented 11 years ago

If you view: echo 0,0,0,0,0,0 > zero.csv view-points "zero.csv;fields=x,y,z;shape=segway.mantis.obj" "zero.csv;fields=x,y,z;shape=segway.mantis.obj" "zero.csv;fields=x,y,z;shape=segway.mantis.obj"

One object as at one orientation, and the other two are at a second orientation. If you specify x,y,z,roll,pitch,yaw it works though - they are all aligned:

view-points "zero.csv;fields=x,y,z,roll,pitch,yaw;shape=segway.mantis.obj" "zero.csv;fields=x,y,z,roll,pitch,yaw;shape=segway.mantis.obj" "zero.csv;fields=x,y,z,roll,pitch,yaw;shape=segway.mantis.obj"

vlaskine commented 11 years ago

fixed (there was no meaningful default for orientation, and thus, if orientation fields were missing in the input, the orientation would be undefined; now it is set to 0,0,0); interesting that i could not reproduce it on linux, which should be just my luck with the compiler.