Skip to content

Commit

Permalink
Fix black linting to reflect new version
Browse files Browse the repository at this point in the history
  • Loading branch information
aeshub committed Feb 9, 2023
1 parent 34c3917 commit d9aea12
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions src/isar_turtlebot/services/video_streamer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import base64

import cv2

from isar_turtlebot.ros_bridge.ros_bridge import RosBridge


Expand All @@ -10,7 +8,6 @@ def __init__(self, bridge: RosBridge) -> None:
self.bridge: RosBridge = bridge

def main(self):

while True:
image_data: str = self.bridge.video_stream.get_image()
image_bytes: bytes = base64.b64decode(image_data)
Expand Down
1 change: 0 additions & 1 deletion src/isar_turtlebot/turtlebot/step_handlers/driveto.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def start(
self,
step: DriveToPose,
) -> None:

goal_pose: Pose = self.transform.transform_pose(
pose=step.pose, from_=step.pose.frame, to_=Frame("robot")
)
Expand Down
1 change: 0 additions & 1 deletion src/isar_turtlebot/turtlebot/step_handlers/takeimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def __init__(
self.inspection: Optional[Image] = None

def start(self, step: TakeImage) -> None:

self.status = Status.Active

current_pose: Pose = self._get_robot_pose()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from typing import Optional
from uuid import uuid4

import numpy as np
import PIL.Image as PILImage
import numpy as np
from alitra import Pose, Position, Transform
from robot_interface.models.inspection.inspection import (
ThermalImage,
Expand Down Expand Up @@ -53,7 +53,6 @@ def start(
self,
step: TakeThermalImage,
) -> None:

self.status = Status.Active
current_pose: Pose = self._get_robot_pose()
target: Position = self.transform.transform_position(
Expand Down
1 change: 0 additions & 1 deletion src/isar_turtlebot/turtlebot/turtlebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class Turtlebot:
"""Step manager for Turtlebot."""

def __init__(self, bridge: RosBridge, transform: Transform) -> None:

self.logger: Logger = logging.getLogger("robot")
self.bridge: RosBridge = bridge
self.transform: Transform = transform
Expand Down
1 change: 0 additions & 1 deletion src/isar_turtlebot/utilities/inspection_pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


def get_inspection_pose(current_pose: Pose, target: Position) -> Pose:

direction = target.to_array() - current_pose.position.to_array()
alpha = np.arctan2(direction[1], direction[0])
rotation = Rotation.from_euler("zyx", [alpha, 0, 0], degrees=False)
Expand Down

0 comments on commit d9aea12

Please sign in to comment.