ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Samer's profile - activity

2020-03-06 20:46:59 -0500 received badge  Notable Question (source)
2020-03-06 20:46:59 -0500 received badge  Famous Question (source)
2020-03-06 20:46:59 -0500 received badge  Popular Question (source)
2018-07-21 23:07:42 -0500 received badge  Self-Learner (source)
2018-07-21 23:07:42 -0500 received badge  Teacher (source)
2018-06-15 05:25:00 -0500 received badge  Notable Question (source)
2018-06-15 05:25:00 -0500 received badge  Famous Question (source)
2017-05-03 04:00:11 -0500 received badge  Famous Question (source)
2016-12-27 13:09:00 -0500 received badge  Notable Question (source)
2016-12-27 13:09:00 -0500 received badge  Popular Question (source)
2016-12-27 13:09:00 -0500 received badge  Famous Question (source)
2016-11-22 01:42:34 -0500 received badge  Good Question (source)
2016-11-08 05:48:33 -0500 received badge  Famous Question (source)
2016-11-08 05:48:33 -0500 received badge  Notable Question (source)
2016-06-02 09:13:16 -0500 asked a question Corrupt JPEG data when extracting a bag file

When I try to extract a bag file to jpg images, sometimes, I get this error message:

Corrupt JPEG data: xxxx extraneous bytes before marker 0xxx

I am using image_view package to do so: here is a snippet of the launch file:

  <node name="extract4" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="node">
    <remap from="image" to="/con$(arg cam4)/image_raw"/>
    <param name="image_transport" value="compressed"/>
    <param name="sec_per_frame" value="0.1"/>
    <param name="filename_format" value="/home/con$(arg cam4)/frame%04i.jpg"/>
  </node>

Does this mean that the bag file has some corrupted data or something wrong with the way I am extracting the images ?

2016-06-01 09:06:12 -0500 received badge  Popular Question (source)
2016-05-26 14:37:31 -0500 answered a question cannot extract images from bag file

It turns out that my images are compressed images and I just had to add this line to the launch file:

<param name="image_transport" value="compressed"/>
2016-05-26 13:09:43 -0500 asked a question cannot extract images from bag file

i am using Ubuntu 14.04 and Ros Indigo. I am trying to extract images from a bag file, I am using this launch file:

<launch>
  <node pkg="rosbag" type="play" name="rosbag" args="-d 30 $(find image_view)/test.bag"/>
  <node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME">
    <remap from="image" to="/ci109/image_raw"/>
    <param name="filename_format" value="~/test/frame%06i.jpg"/>
  </node>
</launch>

I am away of this question wiki and this question. It seems like it is running fine but I do not see anything like

[ INFO] [1303939096.111425424]: Saved image frame0000.jpg

And I don't see any image in the .ros folder or the ~/test folder that I created to test. Here is my output:

SUMMARY
========

PARAMETERS
 * /extract/filename_format: /home/charis/test...
 * /rosdistro: indigo
 * /rosversion: 1.11.19

NODES
  /
    extract (image_view/extract_images)
    rosbag (rosbag/play)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[rosbag-1]: started with pid [15728]
process[extract-2]: started with pid [15729]
[ INFO] [1464279324.985270766]: Initialized sec per frame to 0.100000
[rosbag-1] process has finished cleanly

I did make sure that the bag file is in place. Basically, it seems that the console stays put for a while at

[ INFO] [1464288031.072128668]: Initialized sec per frame to 0.100000

then it says process has finished cleanly !

2016-04-16 21:11:52 -0500 received badge  Popular Question (source)
2016-03-20 09:30:29 -0500 received badge  Famous Question (source)
2016-03-05 19:20:34 -0500 asked a question seg fault using pcl::PCDReader with c++11

I have a code which was running fine until I switched to C++11. I have been debugging this error for a long time, until I narrow it down to this line pcl::PCDReader reader;

int main (int argc, char** argv)
{
      pcl::PCDReader reader;
      return (0);
}

I tried also this method to read point cloud file and I got the same problem,

if (pcl::io::loadPCDFile<pcl::PointXYZ> (argv[1], *cloud_filtered) == -1) //* load the file
{
    PCL_ERROR ("Couldn't read file test_pcd.pcd \n");
    return (-1);
}

I think something is wrong with IO process... I am using these headers:

#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <pcl/ModelCoefficients.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/sample_consensus/method_types.h>
#include <pcl/sample_consensus/model_types.h>
#include <pcl/segmentation/sac_segmentation.h>
#include <pcl/segmentation/plane_coefficient_comparator.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/filters/extract_indices.h>
#include <pcl/kdtree/kdtree.h>
#include <pcl/segmentation/sac_segmentation.h>
#include <pcl/segmentation/extract_clusters.h>
#include <pcl/visualization/cloud_viewer.h>

I am using PCL 1.7 on Ubuntu 14.04

2015-12-30 17:28:36 -0500 received badge  Famous Question (source)
2015-12-08 18:02:11 -0500 received badge  Nice Question (source)
2015-12-08 04:43:09 -0500 received badge  Student (source)
2015-12-08 04:43:08 -0500 received badge  Notable Question (source)
2015-11-11 20:29:44 -0500 received badge  Popular Question (source)
2015-11-09 21:56:52 -0500 asked a question how to install bullet on Indigo in Ubuntu

I have been trying to build this project, it has tf2_bullet which is part of geometry_experimental in it and depends on bullet, So I have been getting this error message whenever I try to do catkin_make

 add_subdirectory(geometry_experimental/tf2_bullet)
-- checking for module 'bullet'
--   package 'bullet' not found

I have done some research and I could not find bullet package. I installed bullet3 from bullet github but that did not solve the problem Any help would be appreciated...

2015-09-23 02:20:57 -0500 received badge  Notable Question (source)