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

David L-B's profile - activity

2021-06-04 20:17:00 -0500 received badge  Enlightened (source)
2021-06-04 20:17:00 -0500 received badge  Good Answer (source)
2021-06-04 20:16:58 -0500 received badge  Good Question (source)
2017-11-29 09:30:32 -0500 received badge  Nice Question (source)
2017-09-01 06:07:28 -0500 received badge  Nice Answer (source)
2015-10-29 10:29:52 -0500 answered a question Possible software missmatch (Arduino Uno)

I have come across the same issue. For me, the problem was due to the use of software serial library. I changed my Uno for a Mega and used one of the hardware serial channels.

After that, we have seen the problem surface arise here and there. Normally, simply reuploading the code solved our issue. If not, we removed the build and devel folders, did a full catkin_make, rebuild the arduino scripts and re-uploaded the arduino files.

2015-09-14 20:49:42 -0500 received badge  Self-Learner (source)
2015-09-14 20:49:42 -0500 received badge  Teacher (source)
2015-09-14 20:49:40 -0500 received badge  Famous Question (source)
2015-04-15 02:36:48 -0500 received badge  Notable Question (source)
2015-04-14 08:32:23 -0500 received badge  Scholar (source)
2015-04-14 08:32:11 -0500 answered a question Converting a Compressed Image to QImage

Found it myself:

qimage = QtGui.QImage.fromData(compressedImage.data)
imageMain = QtGui.QPixmap.fromImage(qimage)
self.ui.label1.setPixmap(imageMain)
2015-04-14 08:29:43 -0500 received badge  Popular Question (source)
2015-03-25 10:18:44 -0500 received badge  Student (source)
2015-03-25 10:18:18 -0500 asked a question Converting a Compressed Image to QImage

Hi all,

I need to create a camera feed viewer that will need to run on very limited bandwidth networks. As such I want to use Compressed images instead of the raw image.

My application is python and uses PyQt for the gui.

How can I convert the /sensor_msgs/Compressed message to a QtGui.Qimage ?

Thanks

David