Ask Your Question
0

How can i graph a string topic in rqt_plot? [closed]

asked 2016-07-25 11:51:04 -0600

chezzydc10 gravatar image

updated 2016-07-25 12:49:30 -0600

130s gravatar image

How can i graph a string topic in rqt_plot?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by chezzydc10
close date 2016-07-26 06:38:59.736365

1 Answer

Sort by ยป oldest newest most voted
3

answered 2016-07-25 12:18:34 -0600

ahendrix gravatar image

rqt_plot only plots numeric values; you can't plot a string.

I'm not sure how that would work anyway. Why are you trying to plot a string and what sort of results do you expect to get?

edit flag offensive delete link more

Comments

my string data outputs numeric value, so is there anyway to convert the string to float or int in the rosbag

chezzydc10 gravatar imagechezzydc10 ( 2016-07-25 12:29:13 -0600 )edit

There's no way to have rqt_plot parse string data into a number. If you're sending numeric data, you should use one of the numeric message types. If you have existing data you can write a node that subscribes to the string version and republishes it as a real numeric type.

ahendrix gravatar imageahendrix ( 2016-07-25 13:47:51 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-07-25 11:51:04 -0600

Seen: 100 times

Last updated: Jul 25 '16