Invalid Positions

  2 posts   Feedicon  
Replies: 1 - Last Post: January 21, 2010 18:14
by: Alexander Koller
showing 1 - 2 of 2
 
Posted: January 20, 2010 20:14 by niels_s
Hi everyone,

since the update to 2.2.1 (at least I can't remember noticing it before), I regularly get these messages in the nlg-server window while (running the example nlg-server for the first map):

Warning: couldn't add position(t1,(13.199999809265137,1.100000023841858,6.5)) (j
ava.lang.RuntimeException: (13.199999809265137,1.100000023841858,6.5) is not a v
alid position)
Warning: couldn't add other-position(p1,(12.5,1.100000023841858,9.0)) (java.lang
.RuntimeException: (12.5,1.100000023841858,9.0) is not a valid position)
Warning: couldn't add position(s1,(13.0,1.0,6.5)) (java.lang.RuntimeException: (
13.0,1.0,6.5) is not a valid position)
Warning: couldn't add position(t1,(13.199999809265137,1.100000023841858,6.5)) (j
ava.lang.RuntimeException: (13.199999809265137,1.100000023841858,6.5) is not a v
alid position)

I think this message is coming from the planner and appears every time the planner has to replan. This didn't annoy me much, but now I noticed that the server crashes with a similar message when I try to get the region of the trophy. e.g.:

System.out.println(getDiscretizer().getPositionName(getWorld().getPosition("t1")));

Exception in thread "Thread-6" java.lang.RuntimeException: (13.199999809265137
1.100000023841858,6.5) is not a valid position

Again, I'm not sure if this would have happened if I had tried this before.

Has anyone else got this problem? Or am I using the methods wrong? I'm running everything under windows xp now.

Niels
 
Posted: January 21, 2010 18:14 by Alexander Koller

Hi,

the error messages were there all along, and can be safely ignored.

The trophy is not inside of a room, and therefore not inside a region. I know this is annoying, but not entirely trivial to fix, and also an old bug. You can work around it by never asking for the region of a trophy.

Alexander

Replies: 1 - Last Post: January 21, 2010 18:14
by: Alexander Koller
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close