--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
HI,I usually follow this:Ptr<ListPositionAllocator> positionAllocS = CreateObject<ListPositionAllocator> ();positionAllocS->Add(Vector(-10.0, -10.0, 0.0));// nodeMobilityHelper mobilityS;mobilityS.SetPositionAllocator(positionAllocS);mobilityS.SetMobilityModel("ns3::ConstantPositionMobilityModel"); //whatever it ismobilityS.Install(node);Alessandro R.
On Mon, Feb 27, 2012 at 6:44 AM, Murtaza <leotheli...@gmail.com> wrote:
I can be wrong but I think this function only accepts std::string. Try to pass std::string instead of char array.
On Mon, Feb 27, 2012 at 1:16 AM, Seasong <xiaohangc...@gmail.com> wrote:
Hey guys, when I compile my c file it says
no matching function for call to
‘ns3::MobilityHelper::SetPositionAllocator(const char [35], const char
[9], ns3::Vector3D)’
Below is my script for this part:
MobilityHelper mobility;
mobility.SetPositionAllocator ("ns3::ConstantPositionMobilityModel",
"Position", Vector3D (-5.5,3.0,0.0));
Where am I wrong?
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-...@googlegroups.com.