simulator icon indicating copy to clipboard operation
simulator copied to clipboard

Question: Usage of CAN bus data of LGSVL

Open ashwinsarvesh opened this issue 4 years ago • 4 comments

Hello,

I have a question. I want to pack the CAN data of the simulator into CAN messages and send it to a CAN bus hardware connected to the PC using PCAN-USB adapter.

Can I directly use the can bus sensor output of LGSVL (what is the format of sensor output?) instead of accessing it through rosbridge? I mean can I use the can bus sensor output before it is converted to CanBusData type?

Or only way to access can bus sensor output is to subscribe to the ROS topic /apollo/canbus/chassis? If other ways are available to access this data please tell me. Kindly help.

ashwinsarvesh avatar Aug 02 '20 19:08 ashwinsarvesh

@ashwinsarvesh You could create UDP messages to the driver of the CAN Bus hardware. Look at our UDP Lidar sensor as an example

EricBoiseLGSVL avatar Aug 03 '20 22:08 EricBoiseLGSVL

Thank you for your answer. That means there are only 2 ways available to send the sensor data. One is via bridge and the other is via UDP packets. Am I right?

To send via UDP, I need to create a can bus sensor plugin and then use Ethernet to CAN converter to get the can messages on the can bus. Am I right?

ashwinsarvesh avatar Aug 04 '20 09:08 ashwinsarvesh

@ashwinsarvesh We have two types of communication with examples currently. Yes, we worked directly with the driver to communicate

EricBoiseLGSVL avatar Aug 04 '20 19:08 EricBoiseLGSVL

@ashwinsarvesh was you able to get data from CAN sensor and send it via PCAN?

ijklmnopqr avatar Apr 06 '22 11:04 ijklmnopqr