openlvc / portico

Portico is an open source, cross-platform, fully supported HLA RTI implementation. Designed with modularity and flexibility in mind, Portico is a production-grade RTI for the Simulation and Training Community, so come say hi!
http://www.porticoproject.org
151 stars 81 forks source link

Find some information about portico to learn how to use #337

Open tongchenqiang opened 10 months ago

tongchenqiang commented 10 months ago

Hello, I would like to learn how to use Portico, but I cannot find many useful materials online. Therefore, I would like to inquire if you have any learning materials, including the process from environment configuration to compilation. Thank you!

elbarto1980 commented 8 months ago

Hi, same problem here. I have just found this link (it is the Wiki page :arrow_up:)

icemagno commented 4 months ago

I've done a lot of work using Portico. Some of them are private, but I'll release them ASAP. One is Portico for Docker. projetoarcanjo/portico:2.1.0

Keep one eye here. I'll make them public soon ( trigger me if I forget it ).

https://github.com/projeto-arcanjo?tab=repositories

projeto-arcanjo commented 4 months ago

I've made Portico wrapped in a Docker container. This is an example how to run a Federate to connect to a X-Plane instance. You will need to configure X-Plane UDP connector.

docker run --name xplaneproxy --hostname=xplaneproxy --network arcanjo \
    -e FEDERATION_NAME=ArcanjoFederation \
    -e FEDERATE_NAME=XPlaneProxy \
    -e XPLANE_ADDRESS=192.168.0.76 \
    -v /etc/localtime:/etc/localtime:ro \
    -p 36000:8080 \
    -p 49003:49003/udp \
    -d projetoarcanjo/xplaneproxy:1.0   

Thats it. It will take your X-Plane airplane and throw it into a FEderation as a Federate. It also offer a REST API documented in Swagger to controll the Federate via web interface.

It was a long time I've made it so I may not remember some details. Take it here: https://github.com/projeto-arcanjo/xplaneproxy

Check the template federate to see the basics. From there you will need only HLA/RTI common knowledge. This will allow you to focus on your Federation because I take care of the Portico stuff.

https://github.com/projeto-arcanjo/template-federate

You will get a NATO RPR FOM here too. I've made this to create proxies to bind heterogeneous black box simulators into a common bus using Portico. So your X-Plane airplane will be a NATO equivalent plane like PhysicalEntity.Platform.Aircraft.

Captura de tela 2024-04-24 090551

Scrap my YouTube channel for "Projeto Arcanjo" and you will find some videos about this: https://youtube.com/@carlosmagnoabreu2827

Let me know if it was useful to you.

projeto-arcanjo commented 4 months ago

Captura de tela 2024-04-24 092050

tongchenqiang commented 4 months ago

Captura de tela 2024-04-24 092050

Thank you!