ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Oddity in rxplot

asked 2013-04-07 19:07:58 -0500

Rizqa gravatar image

updated 2013-04-07 23:02:44 -0500

130s gravatar image

Hi..

I try to "rxplot" but the rxplot does not show anything in window.. I have made "rostopic echo /kirim_ke_servo" to see the data

name: ['joint1', 'joint2', 'joint3']

position: [-0.6512382961093546, -0.19887827975841985, 1.568777172497011]

velocity: [0.5, 0.5, 0.5]

So, I try to "rxplot /kirim_ke_servo/position" in terminal

rizqa@ubuntu:~$ rxplot /kirim_ke_servo/position

[/kirim_ke_servo/position] value was not numeric: (-0.8225104223257155, -0.07641244134696615, 1.755642665868377)

In terminal appear the data.. but rxplot does not display anything How fix the problem ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2013-04-07 21:45:18 -0500

rxplot can only plot numeric values. The "/kirim_ke_servo/position" argument you are using is an array of numeric values, hence rxplot complains. Off the top of my head,

rxplot /kirim_ke_servo/position[0]

should work. This way, the argument points to the first numeric_value in the array. You can of course also plot multiple values simultaneously as described on the rxplot wiki page. There's also rqt_plot, last time I checked it didn't work with array values like yours though (might have changed now).

edit flag offensive delete link more

Comments

nice... ^_^ it works.. thanks @Stefan Kohlbrecher

Rizqa gravatar image Rizqa  ( 2013-04-08 03:07:33 -0500 )edit

@Stefan Kohlbrecher See my answer for array plot.

130s gravatar image 130s  ( 2013-08-07 20:51:51 -0500 )edit
3

answered 2013-04-07 23:07:13 -0500

130s gravatar image

updated 2013-08-07 20:51:06 -0500

As in @Stefan Kohlbrecher's answer, there's rqt_plot that supersedes rxplot (in fact, all rx tools are succeeded by rqt). Please open an enhancement request ticket here if you think it's useful to many users.


Update) rqt_plot does accept brancket to identify elements in the array.image description

edit flag offensive delete link more

Comments

okay.. thanks @Isaac Saito ^_^

Rizqa gravatar image Rizqa  ( 2013-04-08 03:08:35 -0500 )edit

Question Tools

Stats

Asked: 2013-04-07 19:07:58 -0500

Seen: 5,907 times

Last updated: Aug 07 '13