Skip to content

Commit 1042058

Browse files
committed
RobotRESTSDK extend only RobotWebSocketSDK - 0.10.4
1 parent 544a909 commit 1042058

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

simplepybotsdk/configurations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "0.10.3"
1+
VERSION = "0.10.4"
22
LICENSE = "MIT - Copyright (c) 2021-2022 Alex Vellone"
33
MOTORS_CHECK_PER_SECOND = 20
44
MOTORS_POINT_TO_POINT_CHECK_PER_SECOND = 10

simplepybotsdk/robotRestSDK.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
import logging
22
import threading
3-
import os
43
from pyramid.config import Configurator
54
from pyramid.response import Response
65
from pyramid.events import NewRequest
76
from wsgiref.simple_server import make_server
87
import simplepybotsdk.configurations as configurations
98
from simplepybotsdk.exceptions import RobotKeyError
109
from simplepybotsdk.robotWebSocketSDK import RobotWebSocketSDK as RobotWebSocketSDK
11-
from simplepybotsdk.robotSocketSDK import RobotSocketSDK as RobotSocketSDK
1210
from simplepybotsdk.twist import TwistVector
1311

1412
logger = logging.getLogger(__name__)
15-
SOCKET_AS_WEB_SOCKET = os.getenv('SOCKET_AS_WEB_SOCKET', True)
1613

1714

18-
class RobotRESTSDK(RobotWebSocketSDK if SOCKET_AS_WEB_SOCKET is True else RobotSocketSDK):
15+
class RobotRESTSDK(RobotWebSocketSDK):
1916
"""RobotSDK + RobotWebSocketSDK + REST robot's component control with Pyramid."""
2017

2118
def __init__(self, config_path: str, socket_host: str, socket_port: int, rest_host: str, rest_port: int,

0 commit comments

Comments
 (0)