Ask Your Question
0

Rviz: Visualizing data in Rviz exported from python.

asked 2020-02-15 13:06:38 -0500

len gravatar image

My objective is to visualize detection data from a radar on Rviz. I have collected the low level(ADC) data and using Python script, I am able to extract the detections and plot in Python. I would like to plot the detections in Rviz as well.

I have created a publisher node and a custom message, and I see that the data is published successfully on the topic. The data contains two float array variables of size 5, one array provides the x location of the detections and the other array provides the corresponding y location, with radar as the origin.

Can someone please tell me how I can import this data into Rviz, I only need to visualize the x-y position? Do I have to use static transformation? if yes, how, can you please guide me? I am new to ROS.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-02-15 16:03:33 -0500

If you use the sensor_msgs LaserScan message type then rviz has a visualiser that can display that data. If you use a custom message type the you will need to write a plugin yourself to visualise it in rviz

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-02-15 13:06:38 -0500

Seen: 31 times

Last updated: Feb 15