#Trouble getting position from SLAM

1 messages · Page 1 of 1 (latest)

tawny mesa
#

Hello,

I am having trouble with the sdk with slam. I keep getting an error regarding ViamChannel not having an attribute request. I am using the connect() function in my robot class I've also tried with the connect_with_channel() but I think I might using the incorrect first parameter in the dial function.

using connect() results in an ViamChannel not having an attribute request.

using connect_with_channel() results in an error stating connection can't be established. This example (https://python.viam.dev/examples/example.html) uses localhost:9091. How do I know what to enter as my parameter?

I need pointers on how to provide SLAMServiceStub() with a channel.

My goal is to get the position of the robot

attached is my relevant code and screen shot of the error

meager stone
#

Hi @tawny mesa sorry to hear you're having trouble. someone from the team will reply to you by monday!

plain aspen
#

Hi @tawny mesa . Your connection secret can be found at app.viam.com. Navigate to your robot, Code Sample, pick your language (Typescript), and you'll see a code sample with credentials populated.