3-2

WaypointMobility是好的,起码Update是好的,但不知道为什么getvelocity会返回000。

 

SUMOmobility里面,用了WaypointMobility,实际上用的(真正装在Node上的)是ConstantPositionMobilityModel,然后由sumomobility里面的FORCEUPDATE周期性更新。

forceupdate里面由WaypointMobility得到新的地址后,通过setposition传回给ConstantPositionMobilityModel。对Node上的mobility调用GetVelocity,最后的是调用了ConstantPositionMobilityModel::DoGetVelocity,返回0,0,0。

Leave a Reply

Your email address will not be published. Required fields are marked *