Home | Tutorials | Wiki | Issues
Ask Your Question

Can't Convert output of Camera to String

asked 2013-07-18 16:04:54 -0600

Vahid gravatar image

updated 2013-07-18 16:27:41 -0600

Dear All,

I have a big problem and i should solve it immediately, i want to do an image processing project, i add a camera sensor in gazebo (standalone gazebo 1.8.7 without ROS), and i can't get output of camera in my code, i can get out put of it in shell with gaztopic echo and gztopic view. i get output of others sensor with subscribe to their topics and i do same for camera but i can't get it!!! it's my code, I'm sure that my code is correct, but i don't know how can i convert output of camera to string?!!!!!!!!!

subLCam  = nodeLCam->Subscribe("~/pioneer3at/leftcamera/leftlink/camera/image", `&Manage::parseLCam, this);`

void Manage::parseLCam(ConstImageStampedPtr &_img)
    if ( MGDebug )
        qDebug()<<"<<<MG>>> In parseLEFTCam Function.";

    QString msg(_img->ShortDebugString().c_str());

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2013-07-18 16:23:17 -0600

iche033 gravatar image

An example to look at is Gazebo image viewer's code, see this function

edit flag offensive delete link more


thank you so much dear friend, i solve it right now, it was my fault, by the way the link is very useful for me, thank you again.

Vahid gravatar imageVahid ( 2013-07-18 16:30:17 -0600 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-07-18 16:04:54 -0600

Seen: 175 times

Last updated: Jul 18 '13