コード例 #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)
コード例 #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)
コード例 #3
0
ファイル: odom.py プロジェクト: CaoTaMaBi/open-robot
    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)
コード例 #4
0
ファイル: speed.py プロジェクト: CaoTaMaBi/open-robot
    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)
コード例 #5
0
ファイル: odom.py プロジェクト: zhaoxiu1124/open-robot
    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)
コード例 #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)
コード例 #7
0
ファイル: mpu.py プロジェクト: CaoTaMaBi/open-robot
    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)