def static_build_robot_status_message(): message_header = ROSLinkBridgeTurtlebot.static_build_roslink_header_message( MESSAGE_TYPE.ROSLINK_MESSAGE_ROBOT_STATUS) robot_status_message = HeartBeat(message_header, 0, ROSLinkStateVariables.robot_name, 0, 0, 0) return robot_status_message.__dict__
def static_build_heartbeat_message(): message_header = ROSLinkBridgeTurtlebot.static_build_roslink_header_message( MESSAGE_TYPE.ROSLINK_MESSAGE_HEARTBEAT) heartbeat_message = HeartBeat(message_header, ROBOT_TYPE.ROBOT_TYPE_TURTLEBOT, ROSLinkStateVariables.robot_name, ROBOT_STATE.ROBOT_STATE_ACTIVE, ROSLinkStateVariables.owner_id, ROBOT_MODE.ROBOT_STATE_UNKNOWN) return heartbeat_message.__dict__