how to trigger motion to a node when certain event happens

40 views
Skip to first unread message

ammi

unread,
Sep 20, 2010, 2:20:22 AM9/20/10
to omnetpp
Hello,
how are you all doing?

I am using MiXiM and I am working on simulation of communication
protocol for sensor network of mobile robots. I want my robotic node
to move from its current position to specified destination on the
occurrence of a some event. How do I do that?

Thanks a lot for your time and help,
Ammi

Harald Weillechner

unread,
Sep 20, 2010, 2:42:05 AM9/20/10
to omn...@googlegroups.com
Hi!

Read the manual
(omnet 3.2): http://www.omnetpp.org/doc/omnetpp33/manual/usman.html -> section "9.6 Enhancing animation"
(omnet 4.1): http://www.omnetpp.org/doc/omnetpp41/manual/usman.html#sec323 ->section: 10 Network Graphics And Animation

Regards Harald


2010/9/20 ammi <ammi...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.


Paolo Roberto Grassi

unread,
Sep 20, 2010, 2:51:19 AM9/20/10
to omnetpp
Hi Ammi,
I'm using MiXiM for WSN. In particular I'm now focusing on network
layer to implement some kind of dummy routing....


I'm not sure that your problem is on display, but on how to move nodes
depending on some events right? Anyway, your problem interests me so,
please, let me updated.

First of all, try to take a look at Mobility classes (BaseMobility) to
understand how to move the node. Regarding the triggers you have two
choices:
- Use message passing. Like every other modules, you can connect a
"Event Manager" to your node in order to capture the events and send
messages to the nodes that are interested on. You can take inspiration
from Connection Manager.
- Use mutexes or signals. If you don't want to add gates and
connections, you can use mutexes or signals for the communication
between the Event Manager and the nodes.

I hope that it is useful for you

On Sep 20, 8:42 am, Harald Weillechner <haraldweillech...@gmx.at>
wrote:
> Hi!
>
> Read the manual
> (omnet 3.2):http://www.omnetpp.org/doc/omnetpp33/manual/usman.html->
> section "9.6 Enhancing animation"
> (omnet 4.1):http://www.omnetpp.org/doc/omnetpp41/manual/usman.html#sec323->section:
> 10 Network Graphics And Animation
>
> Regards Harald
>
> 2010/9/20 ammi <ammiam...@gmail.com>
>
> > Hello,
> > how are you all doing?
>
> > I am using MiXiM and I am working on simulation of communication
> > protocol for sensor network of mobile robots.  I want my robotic node
> > to move from its current position to specified destination on the
> > occurrence of a some event.  How do I do that?
>
> > Thanks a lot for your time and help,
> > Ammi
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "omnetpp" group.> To post to this group, send email toom...@googlegroups.com.
> > To unsubscribe from this group, send email to>omnetpp+u...@googlegroups.com<omnetpp%2Bunsu...@googlegroups.com>
> > .

ammi

unread,
Sep 22, 2010, 2:08:15 AM9/22/10
to omnetpp
Hello Harald,

Thanks for the reply, I did read the links.
The problem is: the network I wanted to simulate is mobile wireless
sensor network, needed a function that handles the run time
connection issues while the node moves depending on the transmission
power of the nodes.
I would also like to pass an argument to the moving node where and
when to move. Thanks again for the help, any sort of suggestion or
example is appreciated.

Thanks,
Ammi




On Sep 20, 1:42 am, Harald Weillechner <haraldweillech...@gmx.at>
wrote:
> Hi!
>
> Read the manual
> (omnet 3.2):http://www.omnetpp.org/doc/omnetpp33/manual/usman.html->
> section "9.6 Enhancing animation"
> (omnet 4.1):http://www.omnetpp.org/doc/omnetpp41/manual/usman.html#sec323->section:
> 10 Network Graphics And Animation
>
> Regards Harald
>
> 2010/9/20 ammi <ammiam...@gmail.com>
>
>
>
> > Hello,
> > how are you all doing?
>
> > I am using MiXiM and I am working on simulation of communication
> > protocol for sensor network of mobile robots.  I want my robotic node
> > to move from its current position to specified destination on the
> > occurrence of a some event.  How do I do that?
>
> > Thanks a lot for your time and help,
> > Ammi
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "omnetpp" group.
> > To post to this group, send email to omn...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > omnetpp+u...@googlegroups.com<omnetpp%2Bunsu...@googlegroups.com >
> > .

Paolo Roberto Grassi

unread,
Sep 22, 2010, 2:44:02 AM9/22/10
to omnetpp
Hi, the function you mention is exactly the ConnectionManager.It
decide which node is connected and which not. Try to run "BaseNetwork"
example to see it working.

About the movement I suppose you have to write your own mobility
module...it should be not too difficult.

PRG
> > > "omnetpp" group.> > To post to this group, send email toom...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages