On Fri, Dec 3, 2010 at 8:40 PM, Chris Brown <chrisneilbrown@gmail.com> wrote:
Eric,I'm republishing because I want process the data into a point cloud data, which I have no idea how to do, where should I start?I dont have a kinect to play with. To fix it I had to make this change-pub.publish(Image(msg))+pub.publish(msg)works now
On Sat, Dec 4, 2010 at 12:20 PM, Eric Perko <wisesage5001@gmail.com> wrote:
Chris,To just playback a bagfile to a rosnode such as image_view, there is no need to write a script that uses the rosbag API. Take a look at this tutorial: http://www.ros.org/wiki/rosbag/Tutorials/Recording%20and%20playing%20back%20dataFor your specific case, you would want to use the following two commands (or something very close to them) after starting a roscore:1. rosbag play /home/chris/bagfiles/kinectDepthVideo.bag2. rosrun image_view image_view image:=/kinect/depth/image_raw
That should be about all you need to do, no need to read from the bagfile using Python and then republish messages yourself.- Eric
On Fri, Dec 3, 2010 at 7:00 PM, Chris Brown <chrisneilbrown@gmail.com> wrote:
_______________________________________________I get this errorFile "/home/chris/ros/ros/core/roslib/src/roslib/message.py", line 301, in __init__raise TypeError, "Invalid number of arguments, args should be %s"%str(self.__slots__)+" args are"+str(args)TypeError: Invalid number of arguments, args should be ['header', 'height', 'width', 'encoding', 'is_bigendian', 'step', 'data'] args are(header:seq: 0stamp:secs: 1290467094nsecs: 328996057frame_id: /kinect_depthheight: 480width: 640encoding: mono8is_bigendian: 0step: 640data: ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýýÿýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýÿùùÿÿùõýõÿÿýýÿÿÿÿÿýùùõùùùùùùùùÿÿÿÿýÿýýùùùùýÿÿÿÿÿýýùùùùùùùýýýýýùõõõõõùõùùùùõõõõõùùõõõõõõõõõõõõõõõõõõññõññññññññññññññññññõñññññññíññññññññññõõõõÿÿÿÿÿÿÿÿÿõõñññíííééééñññññññññññññíññññññññíííííI'm sure I'm trying to publish send_msg/Image data to image_view which accepts the datarosbag info ~/bagfiles/kinectDepthVideo.bagpath: /home/chris/bagfiles/kinectDepthVideo.bagversion: 2.0duration: 25.1sstart: Nov 23 2010 10:04:54.33 (1290467094.33)end: Nov 23 2010 10:05:19.43 (1290467119.43)size: 220.7 MBmessages: 753compression: none [251/251 chunks]types: sensor_msgs/Image [060021388200f6f0f447d0fcd9c64743]topics: /kinect/depth/image_raw 753 msgs @ 29.8 Hz : sensor_msgs/Image
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users
_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users
_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users