Skip to content

Commit

Permalink
removed extra logerr and formatted properly
Browse files Browse the repository at this point in the history
  • Loading branch information
sshapin committed Apr 23, 2024
1 parent 3c9a479 commit 5b09907
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/teleoperation/backend/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,7 @@ def arm_controller_callback(self, msg):
def sa_joint_callback(self, msg):
names = msg.name
z = msg.position[names.index("sa_z")]
self.send(
text_data=json.dumps(
{"type": "sa_z", "sa_z": z}
)
)
self.send(text_data=json.dumps({"type": "sa_z", "sa_z": z}))

def drive_controller_callback(self, msg):
hits = []
Expand Down Expand Up @@ -687,11 +683,8 @@ def send_res_streams(self):
self.send(text_data=json.dumps({"type": "max_streams", "streams": streams}))

def send_camera_info(self):
rospy.logerr(self.camera_info)
for x in self.camera_info:
rospy.logerr(x)
names = [ x['name'] for x in self.camera_info ]
ports = [ x['port'] for x in self.camera_info ]
names = [x["name"] for x in self.camera_info]
ports = [x["port"] for x in self.camera_info]
self.send(text_data=json.dumps({"type": "camera_info", "names": names, "ports": ports}))

def capture_panorama(self) -> None:
Expand Down

0 comments on commit 5b09907

Please sign in to comment.