-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation Fault #63
Comments
I had a very similar issue for Using the test dataset image size 1344x391 worked. |
Thanks for the response. At the time I submitted the issue, I had a deadline and did not have enough time to look into a complex code to fix it. And I'm currently working on some other projects but do plan on working on the robot again when I can find the time. I'll check out your suggestion then and report back. |
It seems that it was possible for the divconqrecurse to be given a vertex array with 1 or 0 verticies. This would cause an infinite loop causing the crash. I believe that there's already a ticket for this issue: srv#63 Additionally, adding a minor fix to the CMakeLists.txt to allow 'cmake .' to run.
Hey there! |
Hi, I am building a SLAM robot using RatSLAM and was thinking about integrating stereo viso2 odometry into it but I am getting segmentation faults at the function divconqrecurse(mesh*, behavior*, float**, int, int, otri*, otri*) (), the gdb backtrace shows a dozen divconqrecurse function calls. Can you check this out?
Log file:
log.txt
My setup is Raspberry Pi Compute Module 3 running Ubuntu 16.04, ROS kinetic with stereo v1.3 Cameras each taking 640x480 images at 10fps using raspicam lib. The images are sent to my laptop running Ubuntu 16.04, ROS Kinetic over a LAN Wi-Fi connection.
The bgr8 images are first encoded to jpeg before transfer to reduce transfer time.
The Pi publishes
sensor_msgs/CompressedImage at
/agnostobot/left/image/compressed
/agnostobot/right/image/compressed
and
sensor_msgs/CameraInfo at
/agnostobot/left/camera_info
/agnostobot/right/camera_info
The images are then converted back to raw using image_transport
and published at
/rectify/left/image_raw
/rectify/right/image_raw
camera_info messages are remapped to
/rectify/left/camera_info
/rectify/right/camera_info
stereo_image_proc is used to rectify the images. Then ExactTime policy is used to synchronize rectified images and camera_info messages and republish them for viso2_ros stereo_odometer. This was done since camera_info messages were delivered to viso2 earlier than image messages which were still being rectified.
images are published at
/stereo/left/image_rect
/stereo/right/image_rect
and camera_info at
/stereo/left/camera_info
stereo/right/camera_info
the left camera image and camera_info message header frame_id are set at
/agnostobot_left_camera
and the right camera image and camera_info message header frame_id are set at
/agnostobot_right_camera
static_transform_publisher with args="0.1075 0.0865 0.0215 0 0 0 /base_link /agnostobot_left_camera 100" is used to provide transform from /base_link -> /agnostobot_left_camera
static_transform_publisher with args="0.1075 -0.0865 0.0215 0 0 0 /base_link /agnostobot_right_camera 100" is used to provide transform from /base_link -> /agnostobot_right_camera
im also using chrony server on the laptop which is used by the pi for syncing time since that was being a problem too with "future transform" errors.
possible issues but could be unrelated
my tf coordinate frames are not optical frame, my x is forward, y is left and z is up which is not what viso2 want but im new to tf and not sure how to merge both logics.
another issue is that im encoding and decoding before rectification, that shouldn't be an issue, right?
my robot is not built yet, I was just moving my raspberry pi case mounted with cameras around the room, i expect to get false or no odometry data but not for the lib to crash
whats this about, the parameter isn't mentioned in the docs
'stereo' has not been remapped! Example command-line usage:
$ rosrun viso2_ros stereo_odometer stereo:=narrow_stereo image:=image_rect
If you need any more info, let me know. Also let me know if I'm making any mistakes here. Waiting for your response.
Thanks
Links:
pi camera image publisher
launch file
message synchonizer
The text was updated successfully, but these errors were encountered: