l1.5-safety-system/safety_user_plugin/scripts/robot_info.py

11 lines
401 B
Python
Raw Normal View History

#!/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