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

Python display 3D points

asked 2016-04-02 14:35:36 -0500

F.Brosseau gravatar image

Hello,

I know that this question is not very related to ROS but I think that there is some of you who may have worked on something like that.

I have to create a python tool that will read data from a topic (sensor_msgs::Laserscan) and then I had to do some operations on it. I have no problem subscribing to the topic but when I am trying to display points with matplotlib python lib, I have an error because I can't run it in the main loop.

So is there someone who know how to use matplotlib with a ros python script or someone who know other python tool to do that ?

(the other solution is to make a publisher that will send the processed scan to rviz)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-04-02 16:23:35 -0500

ahendrix gravatar image

I think the better approach here is to send the processed laser scan to rviz, either as a sensor_msgs/LaserScan or a sensor_msgs/PointCloud2

edit flag offensive delete link more

Comments

Yes, you are right. I did this and it's works fine.

F.Brosseau gravatar image F.Brosseau  ( 2016-04-04 01:53:39 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-04-02 14:35:36 -0500

Seen: 344 times

Last updated: Apr 02 '16