Exemplo n.º 1
0
        public RemoteControlHub(IWillyRosService willyRosService)
        {
            // Create the cmd_vel topic
            CmdVelTopic = new RosTopic(willyRosService.RosClient, "/cmd_vel", "geometry_msgs/Twist");

            // A timer will reset the speed to 0 if it's not reset in time
            _resetTimer = new Timer(1000)
            {
                AutoReset = true
            };
            _resetTimer.Elapsed += async(sender, args) => await StopMovement();

            _resetTimer.Start();
        }
Exemplo n.º 2
0
 public SonarHub(IWillyRosService willyRosService)
 {
     _willyRosService = willyRosService;
 }
Exemplo n.º 3
0
 public GpsHub(IWillyRosService willyRosService)
 {
     _willyRosService = willyRosService;
 }