Exemple #1
0
 public Navigation(string name)
 {
     base.init(name);
     velocityPublisher = new TwistPublisher("/cmd_vel");
     odomSubscriber    = new OdomSubscriber("/odom", 50);
     navMapPublisher   = new PoseStampedPublisher("/move_base_simple/goal");
     scanSubscriber    = new LaserScanSubscriber("/scan", 500);
 }
    private void InitDelayed()
    {
        _sub          = gameObject.AddComponent <LaserScanSubscriber>();
        _sub.Topic    = _owner.topic;
        _sub.TimeStep = 0;

        Invoke("InitFinal", 0.1f);
    }