-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ROS2 client receive from co-simulator #142
base: master
Are you sure you want to change the base?
Conversation
@rodrigoqueiroz @icolwell-as should we unify the shared memory layout for the client and the server? Why the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
We don't use the client shared memory, we only read from the server. But I think the two shared memory spaces serve slightly different purposes. The server memory shares the state of everything simulated by the GSS, whereas the client memory is only for reporting back the state of any ego or co-simulated vehicles right? |
The ROS client now listens to
/gs/tick_from_client
topic and writes that to the client shared memory.Implemented a simple
mock_co_simulator.py
that simply reposts information from/gs/tick
(aka "tick from server") to/gs/tick_from_client
.It turns out that the shared memory for client layout is different than that of the server:
Client shared memory:
Server shared memory:
In particular, the field
active
is not available in the messagesVehicle
andPedestrian
. It might have to be added.Testing (the exact order does not matter):
0. install ROS2 and build the client
Observe

rqt
topics.Additional changes: