Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 3.3 KB

multilang.md

File metadata and controls

69 lines (44 loc) · 3.3 KB

Multi-Language and Shared Objects

Multilanguage Interops: Caesar SDKs and APIs

The Caesar framework is not limited to direct Julia use. The following Github projects provide access to features of Caesar in their language:

Contributions are welcome! If you are developing an extension we would like to help, please feel free to contact us (details below).

ZMQ Messaging Interface

Caesar.jl has a ZMQ messaging interface (interested can see code here here) that allows users to interact with the solver code base in a variety of ways. The messaging interface is not meant to replace static .so library file compilation--see below---but rather a more versatile and flexible development strategy.

The current known interface implementations to Caesar.jl are:

Starting the Caesar ZMQ Navigation Server

Start the Caesar.ZmqCaesar server in a Julia session with a few process cores and full optimization:

julia -p4 -O3

Then run the following commands, and note these steps have also been scripted here:

#import the required modules
using Caesar, Caesar.ZmqCaesar

# create empty factor graph and config objects
fg = initfg()
config = Dict{String, String}()
zmqConfig = ZmqServer(fg, config, true, "tcp://*:5555");

# Start the server over ZMQ
start(zmqConfig)

# give the server a minute to start up ...

The current tests are a good place to see some examples of the current interfacing functions. Feel free to change the ZMQ interface for to any of the ZMQ supported modes of data transport, such as Interprocess Communication (IPC) vs. TCP.

TODO: expand the ZMQ documentation

ROS Integration

Yes, but not yet. See:

FAQ: ROS Integration

Static, Shared Object .so Compilation

FAQ: Static, Shared Object .so Compilation

The future planning for the Caesar.jl framework and the mm-iSAM inference algorithm is to use the package: https://github.com/JuliaLang/PackageCompiler.jl so that linkable .so files or even full executables can be compiled. Please add your comments to this issue discussion.

Alternative Methods

Interfacing from languages like Python may also be achieved using PyCall.jl although little work has been done in the Caesar.jl framework to explore this path. Julia is itself interactive/dynamic and has plenty of line-by-line and Integrated Development Environment support -- consider trying Julia for your application.