Simulator: About Cyber

Created on 8 Aug 2020  ·  3Comments  ·  Source: lgsvl/simulator

Hello! LGSVL team!
There are some questions about Cyber:

  1. I have a custom data structure. How to use Cyber to create and use it?
  1. If it is an empty scenario and I need to use Cyber to communicate with an external program, what is the least script I need to have?

  2. Is there a simplest example scenario for teaching? Where is the relevant introduction document?

Please list the detailed steps!Thanks!

answered

All 3 comments

You could ask this question in Apollo github.

I have a custom data structure. How to use Cyber to create and use it?

I think the basic steps are

  • create a *.proto file for your custom data structure under Apollo's build directory
  • compile the proto file with protoc, target language is c#. i.e. csharp.
  • copy the compiled the file into corresponding directory inside the simulator: simulator/Assets/Scripts/Bridge/Cyber/
  • then you should be able to use the compiled class in your unity script.

If it is an empty scenario and I need to use Cyber to communicate with an external program, what is the least script I need to have?

As far as I know, LGSVL uses WebSocket to communicate with outside programs. e.g. the API endpoint and the cyber bridge.
You could either make use of the existing API endpoint, or create new websocket classes for your self.

Is there a simplest example scenario for teaching? Where is the relevant introduction document?

What do you mean by example scenario?

@yumianhuli2 Yes, @ntutangyun pretty much covered everything. For 3.) we have created detailed video tutorials for Autoware and Apollo and hope to release them soon.

@yumianhuli2 Yes, @ntutangyun pretty much covered everything. For 3.) we have created detailed video tutorials for Autoware and Apollo and hope to release them soon.

I'm really looking forward to this!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mehmetdogru picture mehmetdogru  ·  7Comments

jonghl9 picture jonghl9  ·  4Comments

frontw picture frontw  ·  5Comments

kmitri-dxc picture kmitri-dxc  ·  5Comments

amirtakouh picture amirtakouh  ·  7Comments