-
Notifications
You must be signed in to change notification settings - Fork 779
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
Speed signal of the ego vehicle #856
Comments
@ashwinsarvesh You can enable the sensor visualizations and have any value you need. If you need a different UI implementation, you will need to edit simulator code or make a sensor that displays UI data. It could even be as simple as an OnGUI(). |
You could also monitor (on ROS, ROS2, or CyberRT) the CAN Bus messages (including speed). For example, in /apollo/canbus/chassis you will see the speed in meters per second labeled as "speed_mps". You could monitor this data programmatically and then determine how to present it to your ADAS camera. You mentioned a GPS antenna, but generating fake GPS radio signals to trick a stationary ADAS camera into thinking it is moving is non-trivial, and not something the simulator will be able to help you with. If you can figure out how to inject the speed into the ADAS camera (or whatever it is connected to) that would be much easier. |
Hello, Thank you for your reply.
|
On the real car, these signals will be passed to your camera driver via those wires. |
Thank you for your reply Regarding your idea, Unfortunately, this camera does not have a ROS driver. :/ So I guess this idea will not work. |
I believe we have all those information available in the simulator (may need more information on that ignition signal -- what does it mean? Is it just an on/off status?) |
ok, I will check on the driver part. |
How do I access this data from the simulator? |
Please read the code to understand how the current sensors access data and send out messages. |
Yes, I will do that. |
Look at sensors and bridge code to see how we send data. They are in their respective folders in Assets/Scripts/Sensors or /Bridge |
Hello, I am planning to use socketcan_bridge to send simulator CAN messages received on a ROS topic to the SocketCAN device which is a CAN hardware connected to a PC. This socketcan_bridge only processes "can_msgs/Frame" messages. To convert CanBusData type to "can_msgs/Frame" messages, I need to modify this code right? Also, Where can I find more information about the CanBusData type and its message frame format? |
@ashwinsarvesh We don't support Socketcan bridge currently but you can create a custom bridge to subscribe to the messages. Right @hadiTab ? |
@EricBoiseLGSVL Can you elaborate what you mean by not support Socketcan_bridge? And by a custom bridge, you mean custom bridge plugin? |
@ashwinsarvesh Yes we support ROS, ROS2 and CyberRT. This new bridge type will need to be added or create a custom solution. |
@EricBoiseLGSVL I get it now. ROS bridges and Cyber RT bridges are adapted to be supported by LGSVL but socketcan_bridge is not adapted. Is my understanding correct? |
@hadiTab is the expert on this but yes you are correct |
Can you tell me what I have to refer to implement a custom bridge plugin? |
Sorry, this feature has not released yet but it should be soon. @hadiTab might have a workaround that would help you better. |
@ashwinsarvesh from what I can tell from what you have described you don't need a new bridge plugin, you need to add a new ROS1 message of type To publish the new message you need to:
Now make sure you add the |
Hello, I am sorry if I was not clear with my previous question.
I need this info to convert to the can_msgs/Frame type. As of now, I can just see the can bus data here |
Hello,
I would like to get the speed of the ego vehicle from the simulation and send it to a camera that has a GPS receiver (2.5mm jack). Is this possible to get the speed of the simulated vehicle?
The reason why I need this: This camera has ADAS functions like lane departure and forward collision warning. For these features to work, I need this speed of the simulated ego vehicle. I place this camera in front of the simulator.
The text was updated successfully, but these errors were encountered: