I am trying to understand the interfaces between LGSVL and Apollo from both the ends. I understand LGSVL subs/pubs topics from/to Apollo, but is it implemented as a typical ROS sub/pub in Simulator? What are the main changes done to base Apollo to enable this data exchange with simulator?
I would also like to know how to add a new topic for this interface? Please let me know
Apollo35ChassisWriter = Bridge.AddWriter<apollo.canbus.Chassis>(ApolloTopic);
...
Apollo35ChassisWriter.Publish(apolloMessage);
you can reference "Canbus.cs"
@Prj1508 Apollo 3.5 replaced ROS with CyberRT. Conceptually the protocol does same things - pub/sub, topics, messages, nodes. Its just that the code is completely rewritten and API is different. The good thing is that in simulator there is almost no difference of using it - see example code daohu527 is showing above - this kind of code will work with any - ros1, ros2 or cyberRT bridge. Only difference is different topic name and message type.
Thank you.
I am just trying to monitor the topics being published by Apollo, but I cannot launch cyber_visualizer, but its throwing error as below.
Could not initialize GLX
Aborted (core dumped)
Thanks for your help
To run cyber_visualizer you need to unset LD_PRELOAD env variable. But don't do it permanently as this variable is needed for perception module.
Thank you. As I am fairly new to this, please let me know how to unset
LD_PRELOAD variable
On Mon, Aug 5, 2019 at 4:07 PM Martins Mozeiko notifications@github.com
wrote:
To run cyber_visualizer you need to unset LD_PRELOAD env variable. But
don't do it permanently as this variable is needed for perception module.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lgsvl/simulator/issues/262?email_source=notifications&email_token=ALP6F35ZG3UCNZCNX47BG6TQDCB6HA5CNFSM4IJGYLLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3S5QDA#issuecomment-518379532,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALP6F3Y5BMMRF2VVX3DQ5VTQDCB6HANCNFSM4IJGYLLA
.
Execute following line in terminal:
unset LD_PRELOAD
thanks again. This solved it and I can bring up cyber visualizer. However, I am not able to launch two docker terminals. If I do, the one I launched first freezes to respond
I think I need to run one docker to initiate LGSVL bridge and another to launch cyber_visualizer. Please let me know.
When you say "launch docker terminals" how exactly are you doing this?
Running docker/scripts/dev_into.sh should work regardless of how many times you run it.
Alternative is to install tmux inside docker. And then use tmux to open multiple windows/panes for running scripts.
I am running docker/scripts/dev_into.sh.
After I have one docker terminal, if I open another terminal and run
docker/scripts/dev_into.sh,
the previous docker terminal freezes.
On Mon, Aug 5, 2019 at 6:05 PM Martins Mozeiko notifications@github.com
wrote:
When you say "launch docker terminals" how exactly are you doing this?
Running docker/scripts/dev_into.sh should work regardless of how many
times you run it.
Alternative is to install tmux inside docker. And then use tmux to open
multiple windows/panes for running scripts.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lgsvl/simulator/issues/262?email_source=notifications&email_token=ALP6F32H5XIBM3PFSMNVQD3QDCP2BA5CNFSM4IJGYLLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3THDZI#issuecomment-518418917,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALP6F34WDQ4K4CIMN2HCB43QDCP2BANCNFSM4IJGYLLA
.
Are you sure you are running dev_into.sh and not dev_start.sh second time?
My bad. Thank you. Its working now
On Mon, Aug 5, 2019 at 6:22 PM Martins Mozeiko notifications@github.com
wrote:
Are you sure you are running dev_into.sh and not dev_start.sh second time?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lgsvl/simulator/issues/262?email_source=notifications&email_token=ALP6F3Y4KWWO4TUAANG2AOLQDCR23A5CNFSM4IJGYLLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3TII5A#issuecomment-518423668,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALP6F32AIL65HEPOCUNWDATQDCR23ANCNFSM4IJGYLLA
.
I am now debugging the issue of car crashing in some route request due to frame rate mismatch. I have Apollo in debug mode connected to simulator. I have these questions
I'm pretty sure you can run as many modules as you wish under gdb. Just open new terminal and run gdb with command you want, then execute "run" with arguments.
Simulator does not simulate CAN messages as we are publishing data with cyber messages. Apollo probably has some cyber node that reads/write CAN messages from Linux driver and then does all other data communications over Cyber to control car or listen for feedback. In our case simulator itself is a car, so there is no need for CAN module.