[ playerstage-Bugs-2976417 ] Camera image broken in Python

"SourceForge.net" <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
Bugs item #2976417, was opened at 2010-03-25 11:24
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433164&aid=2976417&group_id=42445

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: player
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Brian Gerkey (gerkey)
Summary: Camera image broken in Python

Initial Comment:
After revision 4232 the binding for camera image dont work anymore in client_libs/libplayerc/bindings/python/playerc.i

At line 373 in playerc.i

%typemap(out) uint8_t [ANY]
{
  $result = PyBuffer_FromMemory((void*)$1,sizeof(uint8_t)*$1_dim0);
}

As i understad it $1_dim0 takes the size of the array but camera image is no longer an array as of rev 4232 its a pointer to memory so sizeof(uint8_t)*$1_dim0 will be zero. 

What can we do to get camera.image to work in python?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433164&aid=2976417&group_id=42445

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.