Skip to content

Commit

Permalink
python update
Browse files Browse the repository at this point in the history
  • Loading branch information
kharijarrett committed May 4, 2023
1 parent 9f22446 commit 11dcb51
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions python/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,16 @@
import cv2


# async def connect():
# creds = Credentials(
# type='robot-location-secret',
# payload='[PUT IN INFO FROM ROBOT CONNECT TAB ON APP]')
# opts = RobotClient.Options(
# refresh_interval=0,
# dial_options=DialOptions(credentials=creds)
# )
# return await RobotClient.at_address('[INFO FROM ROBOT CONNECT TAB ON APP]', opts)


async def connect():
creds = Credentials(
type='robot-location-secret',
payload='nic7jy2ejp5psdfgu2t93egzkxxbqx0pmf5osh3vlaz1h286')
payload='[PUT IN INFO FROM ROBOT CONNECT TAB ON APP]')
opts = RobotClient.Options(
refresh_interval=0,
dial_options=DialOptions(credentials=creds)
)
return await RobotClient.at_address('kj-main.e8haqq87ki.viam.cloud', opts)
return await RobotClient.at_address('[INFO FROM ROBOT CONNECT TAB ON APP]', opts)


async def main():
# establish a connection to the robot client
Expand Down

0 comments on commit 11dcb51

Please sign in to comment.