<commit_before>#!/usr/bin/env python
# -*- coding:utf-8 -*-

# ------------------------------------------------------------------------------
# @file   : ibs.py
# @brief  : Intelligent Board System
# @author : <NAME>, Pyo
# @version: Ver1.1.1 (since 2012.00.00)
# @date   : 2015.2.25
# ------------------------------------------------------------------------------

'''
    @todo readujust threshold of GetWeightDiff
'''

import serial
import sys
import math
import time
import datetime
import rospy
import subprocess

from tms_msg_db.msg import TmsdbStamped
from tms_msg_db.msg import Tmsdb

LC_MAX_SENSOR_NUM = 4
LC_GET_WEIGHT_CNT = 2
# LC_GET_WEIGHT_STABLE = 12
LC_GET_WEIGHT_STABLE = 30

MAX_OBJECT_NUM = 25  # 環境内に存在する全物品数

# 仕様上の固定値
TR3_STX = 0x02
TR3_ETX = 0x03
TR3_CR = 0x0D
TR3_ACK = 0x30
TR3_NACK = 0x31
TR3_UID_SEND = 0x49

TR3_ANT1 = 0x00
TR3_ANT2 = 0x01
TR3_ANT3 = 0x02
TR3_ANT4 = 0x03
TR3_ANT5 = 0x04
TR3_ANT6 = 0x05
TR3_ANT7 = 0x06
TR3_ANT8 = 0x07<commit_msg>fix LC_GET_WEIGHT_CNT: 2 -> 5 LC_GET_WEIGHT_STABLE(shreshold): 40 -> 60<commit_after>#!/usr/bin/env python
# -*- coding:utf-8 -*-

# ------------------------------------------------------------------------------
# @file   : ibs.py
# @brief  : Intelligent Board System
# @author : <NAME>, Pyo
# @version: Ver1.1.1 (since 2012.00.00)
# @date   : 2015.2.25
# ------------------------------------------------------------------------------

'''
    @todo readujust threshold of GetWeightDiff
'''

import serial
import sys
import math
import time
import datetime
import rospy
import subprocess

from tms_msg_db.msg import TmsdbStamped
from tms_msg_db.msg import Tmsdb

LC_MAX_SENSOR_NUM = 4
LC_GET_WEIGHT_CNT = 5
# LC_GET_WEIGHT_STABLE = 12
LC_GET_WEIGHT_STABLE = 60

MAX_OBJECT_NUM = 25  # 環境内に存在する全物品数

# 仕様上の固定値
TR3_STX = 0x02
TR3_ETX = 0x03
TR3_CR = 0x0D
TR3_ACK = 0x30
TR3_NACK = 0x31
TR3_UID_SEND = 0x49

TR3_ANT1 = 0x00
TR3_ANT2 = 0x01
TR3_ANT3 = 0x02
TR3_ANT4 = 0x03
TR3_ANT5 = 0x04
TR3_ANT6 = 0x05
TR3_ANT7 = 0x06
TR3_ANT8 = 0x07
{'fraction_non_alphanumeric': 0.23629112662013957, 'fraction_numerical': 0.09272183449651047, 'mean_word_length': 2.1310452418096726, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2241093', 'n_tokens_mistral': 930, 'n_tokens_neox': 824, 'n_words': 175}