Kamal Singh
Kamal Singh

Reputation: 531

Moving Pepper from a point to another

I am trying to move Pepper from one point to another which involves a turn of 90 degrees and it is around 40 metres distance. I can make it work when there are no obstacles but when there are obstacles the Pepper stops and then we don't know his location to move again. I am using ALNavigation navigateTo method.

I have tried getting the position by using ALMotion getRobotPosition but it is very error prone and I don't know if we can use that while using ALNavigation API.

Please suggest any solution for this.

Thanks

Upvotes: 1

Views: 929

Answers (1)

Anders_K
Anders_K

Reputation: 992

Your best bet is to use ALNavigationProxy::navigateToInMap. You can play around with this example: https://github.com/aldebaran/naoqi_navigation_samples

  1. Get the code from github or http://doc.aldebaran.com/2-5/naoqi/motion/exploration-api.html#exploration-api
    -see the sample code at the bottom of the page.
  2. Map your space
  3. ALNavigationProxy::navigateToInMap

Upvotes: 1

Related Questions