Code Monkey home page Code Monkey logo

navabilitysdk.py's People

Contributors

affie avatar dehann avatar gearsad avatar jim-hill-r avatar sam-globus avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

sam-globus mfkiwl

navabilitysdk.py's Issues

ContinuousScalar is not supported in the SDK

As a user I would like to be able to create a ContinuousScalar and have it initialize the VariableData correctly (at the moment it is forced to creating a Pose2-format structure, which causes a BoundsError when it is loaded into the cloud).

TAC

  • Add ContinousScalar to the supported VariableTypes
  • Parametrize the VariableNodeData so that it initializes correctly for each type
  • Add unit tests to validate operation

make ipython conditional dependency

To use the ipython features should then be something to the effect:

import ipython.markdown
import navabilitysdk

# use nva markdown features

Implement listNeighbors

listNeighbors(clicon..., "x4")

get back the list of factors connected to that variable

["x3x4f_sdr"; "x4x5f_3r3"; "x4l7f_34r"]

And visa versa for the variables connected to a factor, but that case should just alias to equivalent of:

getVariableOrder(dfg, fctlbl)

which gives back

["x3";"x4"]

Thereafter, alias the specific dispatches for list and ls, also lsf.

PS, I'm writing hot and loose wrt String vs Symbol -- should resolve the default there better.

Readme example is missing client argument

Run readme example, you get the following error:

Traceback (most recent call last):
  File "test.py", line 31, in <module>
    result = navi.solveSession()
TypeError: solveSession() missing 1 required positional argument: 'c'

Update SDK.py multihypo

(converted to issue, someone mentioned this:)

int -> float
I didn't have time to figure python sdk out to see what else is needed.

Modules fail to import when installed via readme instructions

Reproduce the error by doing fresh install via readme instructions. Run provided script. Error below occurs:

Traceback (most recent call last):
  File "test.py", line 4, in <module>
    from navability.entities.StatusMessage import StatusMessage
  File "/home/jim/Workspace/NavAbility/NavAbilitySDK/venv/lib/python3.8/site-packages/navability/entities/StatusMessage.py", line 5, in <module>
    from src.navability.entities.Client import Client, ClientSchema
ModuleNotFoundError: No module named 'src'

Add Pose2Point2Range factor type to SDK

Looks the same as the other Z factors.

"{\"label\":\"x0l3f1\",\"_version\":\"0.18.1\",\"_variableOrderSymbols\":[\"x0\",\"l3\"],\"data\":{\"eliminated\":false,\"potentialused\":false,\"edgeIDs\":[],\"fnc\":{\"Z\":{\"_type\":\"IncrementalInference.PackedNormal\",\"mu\":89.44271909999159,\"sigma\":3.0}},\"multihypo\":[],\"certainhypo\":[1,2],\"nullhypo\":0.0,\"solveInProgress\":0,\"inflation\":5.0},\"tags\":[\"FACTOR\"],\"timestamp\":\"2022-03-24T22:17:04.617-05:00\",\"nstime\":\"0\",\"fnctype\":\"Point2Point2Range\",\"solvable\":1}"

Add SolveOptions to solveSession call

As a user of the SDK I would like to be able to optionally set the solve key and whether the solve should be parametric.

These are passed in as SolveOptionsInput in the solveSession call.

addBlob function sdk-py

As a user I'd like to be able to add blob data to variables in the graph.

Technical acceptance

  • Build the entities BlobMetadata and BlobData
  • Provide a low-level function that performs the end-to-end upload of a data blob addDataBlob(BlobMetadata, data:(string or bytes))
  • Provide a low-level function to link this blob to a variable - need a signature for this

Add PriorPoint2 factor type to SDK

Looks exactly the same as PriorPose2:

"{\"label\":\"l1f1\",\"_version\":\"0.18.1\",\"_variableOrderSymbols\":[\"l1\"],\"data\":{\"eliminated\":false,\"potentialused\":false,\"edgeIDs\":[],\"fnc\":{\"Z\":{\"_type\":\"IncrementalInference.PackedFullNormal\",\"mu\":[10.0,30.0],\"cov\":[1.0,0.0,0.0,1.0]}},\"multihypo\":[],\"certainhypo\":[1],\"nullhypo\":0.0,\"solveInProgress\":0,\"inflation\":5.0},\"tags\":[\"FACTOR\"],\"timestamp\":\"2022-03-24T22:06:41.310-05:00\",\"nstime\":\"0\",\"fnctype\":\"PriorPoint2\",\"solvable\":1}"

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.