2016-04-22 1 views
0

私はウェイポイントモビリティモデルのウェイポイントを追加しようとしていましたが、できません。これは私が何をしたかウェイポイントモビリティモデルのためのウェイポイントの追加

Ptr<WaypointMobilityModel> waypoints = CreateObject<WaypointMobilityModel>(); 
waypoints->AddWaypoint (Waypoint (Seconds (2.0),Vector (25.0, 0, 0))); 
waypoints->AddWaypoint (Waypoint (Seconds (5.0),Vector (50.0, 0, 0))); 
mobility.SetMobilityModel(waypoints); //mobility is my MobilityHelper 

SetMobilityModelは、文字列を期待しているが、代わりに、パラメータのウェイポイントと呼ばれるPTRを得ています。そうするための正しい方法を教えてください。

これは私が得たエラーである:1

no matching function for call to ‘ns3::MobilityHelper::SetMobilityModel(ns3::Ptr<ns3::WaypointMobilityModel>&)’ 
mobility.SetMobilityModel(waypoints); 
note: no known conversion for argument 1 from ‘ns3::Ptr<ns3::WaypointMobilityModel>’ to ‘std::string {aka std::basic_string<char>}’ 
+0

であり、唯一のNS3フォーラムはhttps://groups.googleです。 com/forum /?fromgroups#!forum/ns-3-users –

答えて

関連する問題