Moving by coordinates

55 views
Skip to first unread message

plu...@mail.ru

unread,
May 20, 2013, 12:31:48 PM5/20/13
to omn...@googlegroups.com
Hi, All! In my research nodes must moving by predifend coordinates, e.g. from (x1, y1, z1) to (x2, y2, z2) and than to (x3, y3, z3) with constant speed. What mobility type should I use to implement this and what is the way to define the coordinates?

N.omar

unread,
May 21, 2013, 2:17:08 PM5/21/13
to omn...@googlegroups.com
I think liner but i am not sure 

plu...@mail.ru

unread,
May 21, 2013, 5:19:31 PM5/21/13
to omn...@googlegroups.com
LinearMobility isn't adapted for 3D and don't use a Tourus.
Maybe a Bonnmotion, but Its shows me a message, that node leaves the borders.
As I understood, I need to write in XML file an entry, for example: 1 20.00 20.00 20.00 1 30.00 30.00 30.00
So the node will move in postion from (20, 20, 20) to (30, 30, 30) in 1 second. But its not so at all. I followed the description in manual: "t1 x1 y1 t2 x2 y2 ... The meaning is that the given node gets to (xk,yk) at tk"

plu...@mail.ru

unread,
May 22, 2013, 11:23:50 AM5/22/13
to omn...@googlegroups.com
So the solvation was next. The tk proposed as time node needed to move from, for examle, (x1, y1, z1) to (x2, y2, z2) is a slightly another value. This mobility model works as follows. If you have an entry such as: 1.00 100.00 100.00 100.00 10 500.00 500.00 500.00 30 100.00 100.00 100.00    - your node will move from (100, 100, 100) to (500, 500, 500) per 10 - 1 = 9s the next movement will be from (500, 500, 500) to (100, 100, 100) per 30 - 10 = 20s. Your node movement will be showed at chosen by you interval. Don't forget to set in "parametres" of th "ini" file the entry mobility.is3D.

mehran y

unread,
May 26, 2013, 6:54:00 PM5/26/13
to omn...@googlegroups.com
witch framework do you use?...i have same problem
Reply all
Reply to author
Forward
0 new messages