2018-09-17 19:41:31 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
class RobotInfo:
|
|
|
|
|
2018-09-18 01:46:10 +02:00
|
|
|
def __init__(self,robot_info_msg):
|
|
|
|
self.robot_id = robot_info_msg.robot_id
|
|
|
|
self.battery_voltage = robot_info_msg.battery_voltage
|
|
|
|
self.linear_velocity = robot_info_msg.linear_velocity
|
|
|
|
self.angular_velocity = robot_info_msg.angular_velocity
|
|
|
|
self.state = robot_info_msg.state
|
|
|
|
self.clutch = robot_info_msg.clutch
|