Exemplo n.º 1
0
    def __init__(self):
        self.protocol = Protocol(self.TYPE, self.pack_pmt)

        ChassisDev.__init__(self, "smart_battery",
                            pub_topic = "smart_battery",
                            pub_msg_class = SmartBatteryStatus)
        self.battery_status = SmartBatteryStatus()

        ChassisDev.start_pub(self)
Exemplo n.º 2
0
    def __init__(self):
        self.protocol = Protocol(self.TYPE, self.pack_pmt)

        ChassisDev.__init__(self,
                            "chassis",
                            pub_topic="imu/data_raw",
                            pub_rate=10,
                            pub_msg_class=Imu)
        self.imu = Imu()
        ChassisDev.start_pub(self)
Exemplo n.º 3
0
    def __init__(self):
        self.protocol = Protocol(self.TYPE, self.pack_pmt)

        ChassisDev.__init__(self, "Chassis",
                            pub_topic = "/encoder_cnts",
                            pub_msg_class = Float32MultiArray,
                            pub_rate = 20)
        self.counters = Float32MultiArray()

        ChassisDev.start_pub(self)
Exemplo n.º 4
0
    def __init__(self):
        self.protocol = Protocol(self.TYPE, self.pack_pmt)

        ChassisDev.__init__(self, "Speed",
                            pub_topic = "/speed_wheel",
                            pub_msg_class = Float32MultiArray,
                            pub_rate = 20)
        self.speeds = Float32MultiArray()
        self.speeds.data = [0,0,0]
        ChassisDev.pub_data_update(self, self.speeds)
        ChassisDev.start_pub(self)
Exemplo n.º 5
0
    def __init__(self):
        self.protocol = Protocol(self.TYPE, self.pack_pmt)

        ChassisDev.__init__(self,
                            "Chassis",
                            pub_topic="/encoder_cnts",
                            pub_msg_class=Float32MultiArray,
                            pub_rate=20)
        self.counters = Float32MultiArray()

        ChassisDev.start_pub(self)
Exemplo n.º 6
0
    def __init__(self):
        self.protocol = Protocol(self.TYPE, self.pack_pmt)

        ChassisDev.__init__(self,
                            "Speed",
                            pub_topic="/speed_wheel",
                            pub_msg_class=Float32MultiArray,
                            pub_rate=20)
        self.speeds = Float32MultiArray()
        self.speeds.data = [0, 0, 0]
        ChassisDev.pub_data_update(self, self.speeds)
        ChassisDev.start_pub(self)
Exemplo n.º 7
0
    def __init__(self):
        self.protocol = Protocol(self.TYPE, self.pack_pmt)

        ChassisDev.__init__(self, "chassis", pub_topic="imu/data_raw", pub_rate=10, pub_msg_class=Imu)
        self.imu = Imu()
        ChassisDev.start_pub(self)