ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Delphi ESR 2.5 - Python code to start

asked 2019-05-29 05:56:42 -0500

Asit gravatar image

updated 2022-01-22 16:09:58 -0500

Evgeny gravatar image

Hi all

I have just got a new Delphi ESR 2.5 Radar. It will be great you can point me to some basic python scripts to get started with the sensor.

My setup uses Kvaser Leaf to communicate with Delphi ESR 2.5 on Ubuntu 18.04

Thanks for the help in advance

edit retag flag offensive close merge delete

Comments

1

Can you clarify how this is related to ROS?

gvdhoorn gravatar image gvdhoorn  ( 2019-05-29 06:09:37 -0500 )edit

Get the python basic would allow me to plug this script into ROS and ROS2...

Asit gravatar image Asit  ( 2019-05-30 05:44:54 -0500 )edit

That makes sense, but at this point your question is about basic interaction with your hardware and the SDK provided by kvaser. That is not a ROS question and would be better asked on a different forum.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-30 05:59:50 -0500 )edit

Edited it to fit the forum topic... Hope, now it can stay live...

Asit gravatar image Asit  ( 2019-05-30 06:10:15 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-06-07 19:33:57 -0500

mch gravatar image
  1. Connect your Kvaser adapter to usb
  2. Make sure it's visible: ifconig -a should show can0 (or other canX interface)
  3. Up your can interface as explained here https://en.wikipedia.org/wiki/SocketC...
  4. Run sudo apt install can-utils(https://github.com/linux-can/can-utils)
  5. Make sure you see the data coming on your can interface cansniffer -f can0
  6. Use socketcan_bridge (http://wiki.ros.org/socketcan_bridge) to publish CAN data from can0 to ROS topic
  7. Create regular python node listening to topic published by socketcan_bridge and processed received radar data
edit flag offensive delete link more

Comments

Create regular python node listening to topic published by socketcan_bridge and processed received radar data

something to consider: if you transparently bridge CAN msgs into your ROS nodegraph, any node you write that subscribes to the CAN messages is immediately completely coupled to your radar sensor.

I would seriously recommend not doing that. Instead, use ROS messages: either existing ones or create a new one. Not to hold a bare CAN message, but to correctly encode the semantics and content of what "a radar message" would be.

gvdhoorn gravatar image gvdhoorn  ( 2019-06-08 04:52:34 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2019-05-29 05:56:42 -0500

Seen: 1,754 times

Last updated: Jun 07 '19