Ask Your Question
1

3D plot using rxplot

asked 2011-06-14 22:47:26 -0500

embeddedheaven gravatar image

Hi,

I have the messages /master_position with x, y, z

so I using command

rxplot -M 3d /master_position/x /master_position/y /master_position/z

or

rxplot -M 3d /master_position/x:y:z

but it didn't work and got this error

rxplot: error: You may only specific 2 or 3 topics with '3d' or 'scatter'.
When 2 topics are provided, time is used as the third axis.

Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2011-06-15 04:23:51 -0500

kwc gravatar image

updated 2011-06-16 04:12:25 -0500

Update: bug is now closed, will be included in next release.

This is filed as a bug here:

https://code.ros.org/trac/ros/ticket/3376

I'm hoping to get time later this week to close out some rxplot tickets.

edit flag offensive delete link more
1

answered 2011-06-14 23:46:12 -0500

embeddedheaven gravatar image

^^

I got the solution already,

by debugging I figure out that in file rxplot_main.py in package rxtools has an bug in line 90 and 92 , I comment out these line

 #if len(flat_topics) < 2 or len(flat_topics) > 3:
 #parser.error("You may only specific 2 or 3 topics with '3d' or 'scatter'.\nWhen 2 topics are provided, time is used as the third axis.")

and plot

rxplot -M 3d /master_position/x:y:z

work very well

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

Stats

Asked: 2011-06-14 22:47:26 -0500

Seen: 551 times

Last updated: Jun 16 '11