(more)ĭoing antishake, video stabilisation and AWB all at once makes it unstable for some reason. # picamera stereo ROS node using dual CSI. Revised code after advice in this thread: #!/usr/bin/env python Right_img_msg.data = right_image.flatten().tolist() Left_img_msg.data = left_image.flatten().tolist() Left_img_msg.step = res_x*3 # bytes per row: pixels * channels * bytes per channel (1 normally) # clear the stream in preparation for the next frame # grab the raw NumPy array representing the image and split it Right_img_pub = rospy.Publisher('right_camera/image_color', Image, queue_size=10)įor frame in camera.capture_continuous(rawCapture, format="rgb", use_video_port=True): Left_img_pub = rospy.Publisher('left_camera/image_color', Image, queue_size=10) # queue_size should be roughly equal to FPS? RawCapture = PiRGBArray(camera, size=(res_x*2, res_y)) # picamera struct, a numpy array? # x must be multiple of 128: 640, 512, 384Ĭamera = PiCamera(stereo_mode = 'side-by-side',stereo_decimate=False) # modified from code by Adrian Rosebrock, įrom sensor_msgs.msg import CameraInfo, Image # picamera stereo ROS node using dual CSI Pi CS3 board I suspect I'm going to have to redo it in C++ but I'd rather avoid that because python is quick to use.Ĭan someone tell me what I'm doing wrong, or a better way? #!/usr/bin/env python I think sensor_msgs is the only way to do it as I need to set identical timestamps, but I'm a novice.Īlso the publish rate is pretty slow. This brings in both cameras as one image with good sync (better than 1/60 sec anyway) which i then split up and publish using sensor_msgs. I'm using the picamera library so I can access the cameras as if I was using raspivid. I have cameras plugged into the 2 CSI ports on the standard Raspberry Pi Compute Module breakout board. My Python script to publish the images consistently stops after ~500 images, with no errors. msf) without interfering with Thunderbird’s way of reading the file? Or anything else which I didn’t think of?Įdit: I might have found something useful here: Archiving your e-mail - MozillaZine Knowledge Base Will test and report back.I'm trying to make a stereo camera for visual odometry. msf, this year’s or month’s mails in another. msf file on the Raspi? Or somehow split the. diff and then attach the diff to the outdated. So I was thinking if there is any way to reduce the traffic. This is a pity since it creates a lot of local network traffic and produces high CPU load on the Raspi. stignore file a bit things are going quite well so far with one exception: Whenever Thunderbird receives a new message, the whole Inbox.msf file (which is currently at around 1GB), along with some other files is changed and thus completely resent to the Raspi by Syncthing. The syncing goes only one way (the PC’s only send, the Raspi only receives data).Īfter fiddling with the. So I configured each PC’s home folder (one PC’s as a test for the moment, to be more precise) to be synced with a folder on the Raspi’s hard disk. I would like to use it to back up all the user data from the PCs to the Raspi. My issue is as following: I recently set up Syncthing on my Raspberry Pi and several Linux PCs in the local network. I fear that my question might be rather related to Thunderbird than to Syncthing, but I figured that maybe somebody on the forums already ran into the same issue and has a useful hint.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |