net animator error for third.cc

47 views
Skip to first unread message

Lincy Elizebeth Jim

unread,
Mar 25, 2015, 8:46:37 PM3/25/15
to ns-3-...@googlegroups.com

Hi All

I included the following lines of code to third .cc  before Simulator::Run ();named it as mythird.cc and copied to scratch

I am getting the error message as below

AnimationInterface::SetConstantPosition (csmaNodes.Get(8),6.0 ,10.0);
AnimationInterface::SetConstantPosition  (csmaNodes.Get(10),9.0,10.0);
 AnimationInterface::SetConstantPosition  (csmaNodes.Get(11),12.0,10.0);
 
 AnimationInterface anim ("animthird.xml");

assert failed.cond="n", file=../src/netanim/model/animation-interface.cc /line=289

terminate called without active exception

I am using netanim 3.105

kindly guide

thanking in advance

lincy

Tommaso Pecorella

unread,
Mar 26, 2015, 3:09:53 AM3/26/15
to ns-3-...@googlegroups.com
Hi,

perhaps if you avoid to set the position of non-existent nodes it will work...
However... yes, the error message could be more informative.

T.

Lincy Jim

unread,
Mar 29, 2015, 7:06:02 PM3/29/15
to ns-3-...@googlegroups.com
Hi 

I just included  AnimationInterface anim ("animthird.xml"); 

and now its working fine.

--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/KDBumvRbrxg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages