smartmicro / smartmicro_ros2_radars

ROS2 support for smartmicro radars.
Apache License 2.0
44 stars 19 forks source link

how to set destination ip #37

Closed amdsobhy closed 1 year ago

amdsobhy commented 1 year ago

How can I set destination ip?

purple-mesh commented 1 year ago

Hi @amdsobhy

You should be able to connect to your radar by specifying the radar ip port hw_iface_name and the remaining parameters in umrr_ros2_driver/param/radar.template.yaml

As far as I can tell, there is no need to specify the destination IP directly, but you should ensure that you have the ethernet connection configured correctly so that you can indeed receive radar packets from the radar.

That is, if radar IP is 192.168.11.11 and the default PC IP is 192.168.11.1 then you need to ensure that the OS ethernet IPv4 setting is configured to 192.168.11.1 with subnet 255.255.255.0.

amdsobhy commented 1 year ago

Thank you for your reply. I am currently experiencing a problem where the output on the terminat indicate a successful connection, but when I echo the radar topics or visualize the point cloud I get no data. I do not know why is that

purple-mesh commented 1 year ago

Hi @amdsobhy

Seems like the problem is fairly broad, but I would suggest the following:

Hope this helps.

pablogago11 commented 1 year ago

Hi all,

@amdsobhy you should publish a tf2 as follows to visualize the points in the RVIZ: ros2 run tf2_ros static_transform_publisher 0 0 0 0 0 1 map umrr_<ID>

We are struggling to connect 2 UMRR-96 Type 153 units ensemble via Ethernet. Our setup is as follows:

How shall we proceed? Thanks in advance.

purple-mesh commented 1 year ago

Hi @pablogago11

Sorry I do not have access to UMRR-96 Type 153 radars, but I would suggest trying to isolate whether the issue resides at the smartmicro driver level or the ros2 driver level.

If you can confirm that the example program umrr_ros2_driver/smartmicro/example/src/example_app.cpp in the smartmicro driver package (the one you get from smart_extract.sh after it finishes download and extraction) then you can be reasonably sure that they are working fine there and focus on the ros2 component.

For further reference see umrr_ros2_driver/smartmicro/doc

smartSRA commented 1 year ago

@amdsobhy Can you comment on your status? were you able to resolve?

Generally, to set a custom ip address you may use the drive recorder or send a command via the services provided. For successful communication you need to make sure the sensor and the destination are on the same subnet!

Also, make sure that the user interface/firmware of the sensor you are using is compatible with the driver. The list could be found in the 'Readme' section.

pablogago11 commented 1 year ago

Hi all,

I can confirm that with the new release, both umrr96 radars can stream data using a unique ethernet switch. Our procedure was to: 1) Connect only 1 radar (default IP: 192.168.11.11) 2) Launch the ROS2 and call the service as explained in the README to change the IP, i.e. 192.168.11.12 3) Connect both radars to an ethernet switch 4) Emit the tf2_ros static transform from map to umrr frame to visualize the data in the RVIZ

Thanks @smartSRA for the update.

P.D.: in case anyone messes up the radar configuration, the best is to connect it via CAN to a Windows PC and setting it back to default using the DriveRecorder program from SmartMicro.

smartSRA commented 1 year ago

I believe all points have been addressed and I would close this issue for now.