Code Monkey home page Code Monkey logo

Comments (8)

mzygar avatar mzygar commented on June 12, 2024
  1. What is ESTLocationBuilderSide? How can I implement correctly these values for my location?

In ESTLocationBuilder.h there's a comment saying it's: /** Side of the boundary segment as seen from inside of the location. */

I'm not sure about 2. but I think you get it right. Let's wait for Estimote's answer.

There is one more thing I see in your code:

[locationBuilder addBeaconIdentifiedByMac:kBeaconMac1
                       atBoundarySegmentIndex:0
                                   inDistance:0
                                     fromSide:ESTLocationBuilderLeftSide];

In your case, Beacon1 is in the middle of the wall, so the value of paramter inDistance should equal 7.46/2= 3.73meteres from whichever side (left or right), as it is centered ;)

from ios-indoor-sdk.

sashakid avatar sashakid commented on June 12, 2024

@mzygar

  1. How can I understand it? I've read all comments) My walls are boundary segments, I have 4 walls and location's shape is rectangular. Which of my boundary segments are on left side and which on right side? Or should I use nil for top and bottom (the wall in front of me and the wall besides me) and ESTLocationBuilderLeftSide for only left side and ESTLocationBuilderRightSide for right?
  2. Oh, you want to say I've entered wrong parameters?
 * @param distance Distance from the beacon to the side of the boundary segment.

What is the boundary segment in that case? I thought it's wall in my loaction.

from ios-indoor-sdk.

mzygar avatar mzygar commented on June 12, 2024

Imagine you are standing in the middle of the room.

You take a look at the first wall (boundarySegmentIndex:0), the one with Beacon1 on it. You measure the distance between the beacon and right or left end of the wall. You put the result in [locationBuilder addBeaconIdentifiedByMac:MAC1 atBoundarySegmentIndex:0 inDistance:<YOUR DISTANCE HERE> fromSide:<LEFT OR RIGHT HERE>;] repectively.
Then you turn and repeat the process for the remaining walls(changing boundarySegementIndex accordingly)

Does that make sense?

from ios-indoor-sdk.

sashakid avatar sashakid commented on June 12, 2024

Ok, I understand what you mean.

distance between the beacon and right or left end of the wall

In my case for 1st wall it will be:

[locationBuilder addBeaconIdentifiedByMac:kBeaconMac1
                       atBoundarySegmentIndex:0
                                   inDistance:3.73
                                     fromSide:ESTLocationBuilderLeftSide];

So, I shouldn't repeat the same for right side?

from ios-indoor-sdk.

mzygar avatar mzygar commented on June 12, 2024

So, I shouldn't repeat the same for right side?

Nope, you measure once per beacon. If you measured the distance to the left side, there is no need to measure distance to the right(as the SDK can compute it). You just move on to the next beacon/wall.

from ios-indoor-sdk.

sashakid avatar sashakid commented on June 12, 2024

@mzygar thanks for explaining :-) Maybe someone could help me with 2nd question.

from ios-indoor-sdk.

heypiotr avatar heypiotr commented on June 12, 2024

For the 2nd question: align yourself along the [0,1] vector. Looking at your floor plan, that'd be "facing the top". Then open the compass app, read the number it shows, punch it into the setLocationOrientation: method. Let us know if this solves your problem (:

Really appreciate you coming here with your issue, it tells us know our documentation still needs some work. Thank you! :bowtie: 🎉

BTW, in the future, consider posting on our forums instead: forums.estimote.com 😉

from ios-indoor-sdk.

sashakid avatar sashakid commented on June 12, 2024

Thanks, it works )

from ios-indoor-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.