Python display 3D points
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)
Asked by F.Brosseau on 2016-04-02 14:35:36 UTC
Answers
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
Asked by ahendrix on 2016-04-02 16:23:35 UTC
Comments
Yes, you are right. I did this and it's works fine.
Asked by F.Brosseau on 2016-04-04 01:53:39 UTC
Comments