Skip to content

Commit

Permalink
Dump version to 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackebein committed Aug 4, 2024
1 parent 693cd0c commit 8220082
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ObjectTracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import argparse
import zeroconf
import logging
from logging.handlers import RotatingFileHandler
from pythonosc import udp_client, dispatcher, osc_server
from tinyoscquery.queryservice import OSCQueryService
from tinyoscquery.utility import get_open_tcp_port, get_open_udp_port
Expand Down Expand Up @@ -215,6 +216,7 @@ def osc_message_handler(addr, value) -> None:
set_parameter(parameter, value)
if parameter == "ObjectTracking/config/index" and value == 0:
logger.info(trackers)
# {'global': {1: 1}, 'LHR-3F848DD5': {1: 10, 2: 9, 3: 10, 4: 8, 5: 8, 6: 8, 7: -12, 8: -12, 9: -12, 10: -180, 11: -180, 12: -180, 13: -5, 14: 0, 15: -5, 16: -180, 17: -180, 18: -180, 19: 12, 20: 12, 21: 12, 22: 180, 23: 180, 24: 180, 25: 5, 26: 5, 27: 5, 28: 180, 29: 180, 30: 180}, 'LHR-32E2511E': {1: 8, 2: 7, 3: 8, 4: 6, 5: 6, 6: 6, 7: -12, 8: -12, 9: -12, 10: -180, 11: -180, 12: -180, 13: -2, 14: 0, 15: -2, 16: -180, 17: -180, 18: -180, 19: 12, 20: 12, 21: 12, 22: 180, 23: 180, 24: 180, 25: 2, 26: 2, 27: 2, 28: 180, 29: 180, 30: 180}, 'Playspace': {1: 10, 2: 0, 3: 10, 4: 0, 5: 0, 6: 0, 7: -12, 8: -12, 9: -12, 10: -180, 11: -180, 12: -180, 13: -5, 14: 0, 15: -5, 16: -180, 17: -180, 18: -180, 19: 12, 20: 12, 21: 12, 22: 180, 23: 180, 24: 180, 25: 5, 26: 3, 27: 5, 28: 180, 29: 180}}
if parameter == "ObjectTracking/config/index" and value != 0:
device = get_parameter("ObjectTracking/config/device", 0)
index = value
Expand Down Expand Up @@ -354,7 +356,9 @@ def get_logger():
level=log_level,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
handlers=[
logging.FileHandler(get_absolute_data_path("object_tracking.log")),
RotatingFileHandler(
get_absolute_data_path("ObjectTracking.log"), maxBytes=10*1024*1024, backupCount=5
),
logging.StreamHandler()
]
)
Expand Down Expand Up @@ -398,7 +402,7 @@ def get_logger():
HTTP_PORT = int(config["HTTP_Port"] if config["HTTP_Port"] > 0 else get_open_tcp_port()) # OSC QUERY
UPDATE_INTERVAL = 1 / float(config['UpdateRate'])
AVATAR_PARAMETERS_PREFIX = "/avatar/parameters/"
TITLE = "ObjectTracking v0.1.1"
TITLE = "ObjectTracking v0.1.2"

set_title(TITLE)

Expand Down

0 comments on commit 8220082

Please sign in to comment.