Dear 

         The swaping of color is due to the fact that the image obtained
from playerv camera is RGB while you have to convert it into BGR.

Regards

Bushra Sabir

Nate Koenig wrote:
> 
> Hello,
> 
> Can you try the latest version of Gazebo, or even the SVN version?
> 
> -nate
> 
> On Sun, Mar 28, 2010 at 9:22 PM, David Michal <michalrob...@knology.net>
> wrote:
>> I am trying to use camera data from gazebo for the first time.  The
>> image has the correct shapes in playerv but the wrong colors.  Blue and
>> yellow objects in gazebo show up as red and turquoise.  I am using
>> Player 3.0.1, Gazebo 0.9.0, and Ogre 1.6.5.  Is there something I have
>> configured incorrectly or is this a bug?
>>
>> Here is the definition from my model file.
>>
>> <model:physical name="webcam_model">
>>  <xyz>0.22 0.0 0.108</xyz>
>>  <rpy>0.0 60.0 0.0</rpy>
>>  <body:empty name="webcam_body">
>>      <geom:sphere name="webcam_geom">
>>      <size>0.0254</size>
>>      <mass>0.25</mass>
>>      <visual>
>>        <scale>0.0254 0.0254 0.0254</scale>
>>        <mesh>unit_sphere</mesh>
>>        <material>Gazebo/Black</material>
>>      </visual>
>>    </geom:sphere>
>>    <sensor:camera name="webcam_sensor">
>>      <imageSize>640 480</imageSize>
>>      <hfov>72</hfov>
>>      <nearClip>0.02</nearClip>
>>      <farClip>20</farClip>
>>      <saveFrames>false</saveFrames>
>>      <saveFramesPath>frames</saveFramesPath>
>>      <controller:generic_camera name="webcam_controller">
>>        <interface:camera name="camera_iface_0"/>
>>      </controller:generic_camera>
>>    </sensor:camera>
>>  </body:empty>
>> </model:physical>
>>
>> And here is the entry in the config file.
>>
>> driver
>> (
>>  name "gazebo"
>>  provides ["camera:0"]
>>  gz_id "pcbot914_model1::webcam_model::camera_iface_0"
>> )
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Playerstage-gazebo mailing list
>> Playerstage-gazebo@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Playerstage-gazebo mailing list
> Playerstage-gazebo@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
> 
> 

-- 
View this message in context: 
http://old.nabble.com/playerv-camera-data-wrong-colors-when-using-gazebo-tp28112875p29115891.html
Sent from the playerstage-gazebo mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to