Can't use rqt_plot with some topics
Hi to all,
I'm not able to use rqt_plot
with some topics (I'm using ROS Indigo).
I this it's because I can't find the correct field name and so I'm not able to correctly specify the path in rqt_plot
.
This is my bag file and, for example, it outputs the following data for /robo/io topic:
data: 1511957429.218142138,0,0,0,0,3416,1441,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,6551
---
data: 1511957429.318112290,0,0,0,0,3442,1169,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,6552
---
data: 1511957429.418157183,0,0,0,0,3345,1283,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,6553
---
data: 1511957429.518295379,0,0,0,0,3294,1374,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,6554
---
data: 1511957429.618295945,0,0,0,0,3294,1306,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,6555
---
data: 1511957429.718757851,0,0,0,0,3258,1366,0,0,0,0,0,1,1,0,0,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,6556
---
data: 1511957429.818196624,0,0,0,0,3307,1473,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,6557
This is the result of rostopic type
:
rostopic type /robo/io
std_msgs/String
All the topics included in the bag file come out from a ROS node which I wrote.
I'd like to plot columns 6 and 7 of /robo/io
by using rtq_plot
or any other tool available under ROS.
Can you help me, please?
Random comment: using
std_msgs/String
for this seems like a really strange thing to do. And I would be surprised if the answer by @jayess works immediately. I'm not sure ifrqt_plot
will plot anything but numeric data and / or can index into strings like what is suggested.@gvdhoorn Good point, I somehow missed that
std_msgs/String
part at the end.