smartmicro / smartmicro_ros2_radars

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

Parsing Error #29

Closed umsarmy closed 1 year ago

umsarmy commented 1 year ago

[smartmicro_radar_node_exe-1] terminate called after throwing an instance of 'nlohmann::detail::parse_error' [smartmicro_radar_node_exe-1] what(): [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal

smartSRA commented 1 year ago

Hey,

It seems you are mixing up docker and standard commands which is leading to problem in your file paths. As I am not entirely sure which steps you took to build the driver, delete your “build” and “install” folder and follow the following steps:

1) source your terminal 2) colcon build from root of your workspace 3) source your workspace 2) ros2 launch umrr_ros2_driver radar.launch.py also called from root of your workspace.

umsarmy commented 1 year ago

Hi @smartSRA, Thanks for a quick reply.

I followed the streps and the issue got resolved. Thanks!

umsarmy commented 1 year ago

However, I am not able to see any data on the rostopic

/smart_radar/targets_0 /smart_radar/targets_1 /smart_radar/targets_2 /smart_radar/targets_3

I have uploaded a screenshot of my radar.template.yaml. I am using UMRR11 Type 132.

Screenshot from 2023-02-17 12-20-53

smartSRA commented 1 year ago

Hey,

The params look fine. Could you verify if you are using a compatible sensor firmware with the driver? The compatible versions are mentioned in the Readme.

umsarmy commented 1 year ago

Thanks, @smartSRA for the reply.

Actually, I got it worked by just changing the ipv4 address of my laptop from 192.168.11.99 to 192.168.11.17.

Other things remained the same.

umsarmy commented 1 year ago

@smartSRA Do you why it only works when my system IP is 192.168.11.17? Why I can't use other IP addresses?

smartSRA commented 1 year ago

Thanks, @smartSRA for the reply.

Actually, I got it worked by just changing the ipv4 address of my laptop from 192.168.11.99 to 192.168.11.17.

Other things remained the same.

Yes, it should have been 192.168.11.17.

smartSRA commented 1 year ago

@smartSRA Do you why it only works when my system IP is 192.168.11.17? Why I can't use other IP addresses?

This is the default ip address for the source in the sensor configuration. The sensor looks for this source when trying to communicate. In order to use another ip address it could be modified. This could be achieved using the driverecorder tool and how to achieve this should be mentioned in the sensor configuration manual.

umsarmy commented 1 year ago

OK. Thanks