Skip to content

Commit

Permalink
Remove unused video stream object
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Dec 13, 2024
1 parent 07a911b commit 68f33e6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
18 changes: 1 addition & 17 deletions src/isar/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from isar.config import predefined_missions
from robot_interface.models.robots.robot_model import RobotModel
from robot_interface.telemetry.payloads import DocumentInfo, VideoStream
from robot_interface.telemetry.payloads import DocumentInfo


class Settings(BaseSettings):
Expand Down Expand Up @@ -194,22 +194,6 @@ def __init__(self) -> None:
# Info about robot documentation
DOCUMENTATION: List[DocumentInfo] = Field(default=[])

# Endpoints to reach video streams for the robot
VIDEO_STREAMS: List[VideoStream] = Field(
default=[
VideoStream(
name="Front camera",
url="http://localhost:5000/videostream/front",
type="turtlebot",
),
VideoStream(
name="Rear camera",
url="http://localhost:5000/videostream/rear",
type="turtlebot",
),
]
)

# Data scheme the robot should adhere to
# Options [DS0001]
DATA_SCHEME: str = Field(default="DS0001")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def run(self) -> None:
robot_serial_number=settings.SERIAL_NUMBER,
robot_asset=settings.PLANT_SHORT_NAME,
documentation=settings.DOCUMENTATION,
video_streams=settings.VIDEO_STREAMS,
host=settings.API_HOST_VIEWED_EXTERNALLY,
port=settings.API_PORT,
capabilities=robot_settings.CAPABILITIES,
Expand Down
8 changes: 0 additions & 8 deletions src/robot_interface/telemetry/payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ class DocumentInfo:
url: str


@dataclass
class VideoStream:
name: str
url: str
type: str


@dataclass
class RobotStatusPayload:
isar_id: str
Expand All @@ -76,7 +69,6 @@ class RobotInfoPayload:
robot_serial_number: str
robot_asset: str
documentation: List[DocumentInfo]
video_streams: List[VideoStream]
host: str
port: int
capabilities: List[str]
Expand Down

0 comments on commit 68f33e6

Please sign in to comment.