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

hamdi's profile - activity

2020-11-23 10:08:22 -0500 received badge  Enlightened (source)
2020-11-23 10:08:22 -0500 received badge  Good Answer (source)
2020-11-23 10:08:18 -0500 received badge  Good Question (source)
2016-01-11 14:13:33 -0500 received badge  Taxonomist
2015-04-01 10:10:43 -0500 received badge  Famous Question (source)
2015-03-13 19:16:10 -0500 received badge  Notable Question (source)
2015-03-13 19:16:10 -0500 received badge  Notable Question (source)
2015-02-24 14:36:02 -0500 received badge  Popular Question (source)
2015-02-13 16:36:40 -0500 asked a question I am getting error while implement of freenect launch with kinect in indigo

hi, I used to indigo distribution of ros in ubuntu 14.04. I want to run "roslaunch freenect_launch freenect.launch" but I'm getting the following error:

[ INFO] [1423866290.889275905]: Number devices connected: 1
[ INFO] [1423866290.889396601]: 1. device on bus 000:00 is a Xbox NUI Camera (2ae) from Microsoft (45e) with serial id '0000000000000000'
[ INFO] [1423866290.891363266]: Searching for device with index = 1
[ INFO] [1423866290.892598267]: No matching device found.... waiting for devices. Reason: [ERROR] Unable to open specified kinect

reason of "lsusb "

hb@eng:~$ lsusb
Bus 002 Device 018: ID 045e:02ae Microsoft Corp. Xbox NUI Camera
Bus 002 Device 017: ID 045e:02ad Microsoft Corp. Xbox NUI Audio
Bus 002 Device 015: ID 045e:02c2 Microsoft Corp. 
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0b05:1788 ASUSTek Computer, Inc. 
Bus 001 Device 003: ID 13d3:5122 IMC Networks 
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The kinect is plugged into the usb 2.0 port and kinect model is 1473.

how can I solve this error?

thanks.

2015-02-12 15:54:03 -0500 received badge  Famous Question (source)
2015-01-20 19:25:04 -0500 received badge  Notable Question (source)
2015-01-06 13:28:25 -0500 received badge  Popular Question (source)
2014-12-28 14:40:36 -0500 asked a question hector slam and kinect

Hi, I'm trying to SLAM, but I'm getting the error. I'm trying to do as follows:

from the following link: http://gist.github.com/tkrugg/5628582

at first I am running "fakelaser. launch" file and I get this error:

[ERROR] [1419797344.223443517]: Failed to load nodelet [/pointcloud_throttle] of type [pointcloud_to_laserscan/CloudThrottle]: According to the loaded plugin descriptions the class pointcloud_to_laserscan/CloudThrottle with base class type nodelet::Nodelet does not exist. Declared types are  depth_image_proc/convert_metric depth_image_proc/disparity depth_image_proc/point_cloud_xyz depth_image_proc/point_cloud_xyzrgb depth_image_proc/register freenect_camera/driver image_proc/crop_decimate image_proc/debayer image_proc/rectify image_rotate/image_rotate image_view/disparity image_view/image nodelet_tutorial_math/Plus openni_camera/driver pcl/BAGReader pcl/BoundaryEstimation pcl/ConvexHull2D pcl/CropBox pcl/EuclideanClusterExtraction pcl/ExtractIndices pcl/ExtractPolygonalPrismData pcl/FPFHEstimation pcl/FPFHEstimationOMP pcl/MomentInvariantsEstimation pcl/MovingLeastSquares pcl/NodeletDEMUX pcl/NodeletMUX pcl/NormalEstimation pcl/NormalEstimationOMP pcl/NormalEstimationTBB pcl/PCDReader pcl/PCDWriter pcl/PFHEstimation pcl/PassThrough pcl/PointCloudConcatenateDataSynchronizer pcl/PointCloudConcatenateFieldsSynchronizer pcl/PrincipalCurvaturesEstimation pcl/ProjectInliers pcl/SACSegmentation pcl/SACSegmentationFromNormals pcl/SegmentDifferences pcl/StatisticalOutlierRemoval pcl/VFHEstimation pcl/VoxelGrid stereo_image_proc/disparity stereo_image_proc/point_cloud stereo_image_proc/point_cloud2
[FATAL] [1419797344.223806072]: Service call failed!
process[kinect_laser-24]: started with pid [6937]
[ERROR] [1419797344.297846434]: Failed to load nodelet [/kinect_laser] of type [pointcloud_to_laserscan/CloudToScan]: According to the loaded plugin descriptions the class pointcloud_to_laserscan/CloudToScan with base class type nodelet::Nodelet does not exist. Declared types are  depth_image_proc/convert_metric depth_image_proc/disparity depth_image_proc/point_cloud_xyz depth_image_proc/point_cloud_xyzrgb depth_image_proc/register freenect_camera/driver image_proc/crop_decimate image_proc/debayer image_proc/rectify image_rotate/image_rotate image_view/disparity image_view/image nodelet_tutorial_math/Plus openni_camera/driver pcl/BAGReader pcl/BoundaryEstimation pcl/ConvexHull2D pcl/CropBox pcl/EuclideanClusterExtraction pcl/ExtractIndices pcl/ExtractPolygonalPrismData pcl/FPFHEstimation pcl/FPFHEstimationOMP pcl/MomentInvariantsEstimation pcl/MovingLeastSquares pcl/NodeletDEMUX pcl/NodeletMUX pcl/NormalEstimation pcl/NormalEstimationOMP pcl/NormalEstimationTBB pcl/PCDReader pcl/PCDWriter pcl/PFHEstimation pcl/PassThrough pcl/PointCloudConcatenateDataSynchronizer pcl/PointCloudConcatenateFieldsSynchronizer pcl/PrincipalCurvaturesEstimation pcl/ProjectInliers pcl/SACSegmentation pcl/SACSegmentationFromNormals pcl/SegmentDifferences pcl/StatisticalOutlierRemoval pcl/VFHEstimation pcl/VoxelGrid stereo_image_proc/disparity stereo_image_proc/point_cloud stereo_image_proc/point_cloud2
[FATAL] [1419797344.298068842]: Service call failed!
[pointcloud_throttle-23] process has died [pid 6916, exit code 255, cmd /opt/ros/hydro/lib/nodelet/nodelet load pointcloud_to_laserscan/CloudThrottle openni_manager cloud_in:=/camera/depth/points cloud_out:=cloud_throttled __name:=pointcloud_throttle __log:=/home/hamdi/.ros/log/2d3f138a-8ecc-11e4-90e5-485d60826630/pointcloud_throttle-23.log].
log file: /home/hamdi/.ros/log/2d3f138a-8ecc-11e4-90e5-485d60826630/pointcloud_throttle-23*.log
[kinect_laser-24] process has died [pid 6937, exit code 255, cmd /opt/ros/hydro/lib/nodelet/nodelet load pointcloud_to_laserscan/CloudToScan openni_manager cloud:=cloud_throttled __name:=kinect_laser __log:=/home/hamdi/.ros/log/2d3f138a-8ecc-11e4-90e5-485d60826630/kinect_laser-24.log].
log file: /home/hamdi/.ros/log/2d3f138a-8ecc-11e4-90e5-485d60826630/kinect_laser-24*.log

then I'm running "hectorslam. launch" file and I get this error:

ERROR: the config file '/opt/ros/hydro/share/hector_slam_launch/rviz_cfg/mapping_demo.vcg' is a .vcg file, which is the old rviz config format.
       New config files have a .rviz extension and use YAML formatting.  The format changed
       between Fuerte and Groovy.  There is not (yet) an automated conversion program.
[rviz-7] process has died [pid 8196, exit code 1, cmd /opt/ros/hydro/lib/rviz/rviz -d /opt/ros/hydro/share/hector_slam_launch/rviz_cfg/mapping_demo.vcg __name:=rviz __log:=/home/hamdi/.ros/log/2d3f138a-8ecc-11e4-90e5-485d60826630/rviz-7.log].
log file ...
(more)
2014-12-06 07:58:19 -0500 received badge  Famous Question (source)
2014-11-11 13:32:30 -0500 received badge  Notable Question (source)
2014-11-11 10:12:49 -0500 received badge  Popular Question (source)
2014-10-25 08:45:20 -0500 received badge  Favorite Question (source)
2014-10-25 08:45:19 -0500 received badge  Nice Question (source)
2014-10-09 10:28:01 -0500 received badge  Famous Question (source)
2014-07-31 18:54:20 -0500 received badge  Famous Question (source)
2014-07-17 07:13:32 -0500 asked a question ApproximateTime Policy error

hi, I used to hydro distribution of ros. I want to use ApproximateTime Policy but I'm getting the following error, why I am getting this error?

thanks

error:

In file included from /opt/ros/hydro/include/ros/serialization.h:37:0,
                 from /opt/ros/hydro/include/ros/publisher.h:34,
                 from /opt/ros/hydro/include/ros/node_handle.h:32,
                 from /opt/ros/hydro/include/ros/ros.h:45,
                 from /home/esetron/catkin_ws/src/sabir/src/sabir_node.cpp:190:
/opt/ros/hydro/include/ros/message_traits.h: In static member function ‘static ros::Time ros::message_traits::TimeStamp<M, typename boost::enable_if<ros::message_traits::HasHeader<M> >::type>::value(const M&) [with M = pcl::PointCloud<pcl::PointXYZRGB>]’:
/opt/ros/hydro/include/message_filters/sync_policies/approximate_time.h:167:89:   instantiated from ‘void message_filters::sync_policies::ApproximateTime<M0, M1, M2, M3, M4, M5, M6, M7, M8>::checkInterMessageBound() [with int i = 0, M0 = pcl::PointCloud<pcl::PointXYZRGB>, M1 = sensor_msgs::Image_<std::allocator<void> >, M2 = message_filters::NullType, M3 = message_filters::NullType, M4 = message_filters::NullType, M5 = message_filters::NullType, M6 = message_filters::NullType, M7 = message_filters::NullType, M8 = message_filters::NullType]’
/opt/ros/hydro/include/message_filters/sync_policies/approximate_time.h:218:7:   instantiated from ‘void message_filters::sync_policies::ApproximateTime<M0, M1, M2, M3, M4, M5, M6, M7, M8>::add(const typename boost::mpl::at_c<typename message_filters::PolicyBase<M0, M1, M2, M3, M4, M5, M6, M7, M8>::Events, i>::type&) [with int i = 0, M0 = pcl::PointCloud<pcl::PointXYZRGB>, M1 = sensor_msgs::Image_<std::allocator<void> >, M2 = message_filters::NullType, M3 = message_filters::NullType, M4 = message_filters::NullType, M5 = message_filters::NullType, M6 = message_filters::NullType, M7 = message_filters::NullType, M8 = message_filters::NullType, typename boost::mpl::at_c<typename message_filters::PolicyBase<M0, M1, M2, M3, M4, M5, M6, M7, M8>::Events, i>::type = ros::MessageEvent<const pcl::PointCloud<pcl::PointXYZRGB> >]’
/opt/ros/hydro/include/message_filters/synchronizer.h:358:5:   instantiated from ‘void message_filters::Synchronizer<Policy>::cb(const typename boost::mpl::at_c<typename Policy::Events, i>::type&) [with int i = 0, Policy = message_filters::sync_policies::ApproximateTime<pcl::PointCloud<pcl::PointXYZRGB>, sensor_msgs::Image_<std::allocator<void> > >, typename boost::mpl::at_c<typename Policy::Events, i>::type = ros::MessageEvent<const pcl::PointCloud<pcl::PointXYZRGB> >]’
/opt/ros/hydro/include/message_filters/synchronizer.h:290:5:   instantiated from ‘void message_filters::Synchronizer<Policy>::connectInput(F0&, F1&, F2&, F3&, F4&, F5&, F6&, F7&, F8&) [with F0 = message_filters::Subscriber<pcl::PointCloud<pcl::PointXYZRGB> >, F1 = message_filters::Subscriber<sensor_msgs::Image_<std::allocator<void> > >, F2 = message_filters::NullFilter<message_filters::NullType>, F3 = message_filters::NullFilter<message_filters::NullType>, F4 = message_filters::NullFilter<message_filters::NullType>, F5 = message_filters::NullFilter<message_filters::NullType>, F6 = message_filters::NullFilter<message_filters::NullType>, F7 = message_filters::NullFilter<message_filters::NullType>, F8 = message_filters::NullFilter<message_filters::NullType>, Policy = message_filters::sync_policies::ApproximateTime<pcl::PointCloud<pcl::PointXYZRGB>, sensor_msgs::Image_<std::allocator<void> > >]’
/opt/ros/hydro/include/message_filters/synchronizer.h:282:5:   instantiated from ‘void message_filters::Synchronizer<Policy>::connectInput(F0&, F1&, F2&, F3&, F4&, F5&, F6&, F7&) [with F0 = message_filters::Subscriber<pcl::PointCloud<pcl::PointXYZRGB> >, F1 = message_filters::Subscriber<sensor_msgs::Image_<std::allocator<void> > >, F2 = message_filters::NullFilter<message_filters::NullType>, F3 = message_filters::NullFilter<message_filters::NullType>, F4 = message_filters::NullFilter<message_filters::NullType>, F5 = message_filters::NullFilter<message_filters::NullType>, F6 = message_filters::NullFilter<message_filters::NullType>, F7 = message_filters::NullFilter ...
(more)
2014-07-14 02:34:05 -0500 received badge  Notable Question (source)
2014-07-11 04:55:23 -0500 received badge  Nice Answer (source)
2014-07-11 02:14:37 -0500 commented answer passthrough filter error

finally happened ;)

2014-07-11 02:01:48 -0500 received badge  Enthusiast
2014-07-10 10:47:09 -0500 received badge  Student (source)
2014-07-10 10:31:07 -0500 commented answer passthrough filter error

I tried but I am taking this error: "25 points required to accept or unaccept your own answer"

2014-07-10 09:43:49 -0500 received badge  Self-Learner (source)
2014-07-10 09:43:49 -0500 received badge  Teacher (source)
2014-07-10 09:18:36 -0500 answered a question passthrough filter error

Marti thanks for answer.

the following code is correct code for pass through filter and voxel grid filter in Ros Hydro:

#include <ros/ros.h>
#include <iostream>
// PCL specific includes
 #include <pcl_conversions/pcl_conversions.h>
 #include <sensor_msgs/PointCloud2.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/filters/passthrough.h>
#include <pcl/filters/voxel_grid.h>

ros::Publisher pub;

void cloud_cb(const pcl::PCLPointCloud2ConstPtr& input)
{

  //pcl::PCLPointCloud2 cloud_filtered;
  pcl::PCLPointCloud2::Ptr cloud_filtered (new pcl::PCLPointCloud2);
  pcl::PCLPointCloud2::Ptr cloud_pass(new pcl::PCLPointCloud2);
  pcl::VoxelGrid<pcl::PCLPointCloud2> sor;

    pcl::PassThrough<pcl::PCLPointCloud2> pass_through_filter;

    //pass through filter
    pass_through_filter.setInputCloud (input);
    pass_through_filter.filter (*cloud_pass);

    //voxel grid filter
    sor.setInputCloud(cloud_pass);
    sor.setLeafSize(0.05, 0.05, 0.05);
    sor.filter(*cloud_filtered);


    // Publish the data
    pub.publish(*cloud_filtered);
}

int main (int argc, char** argv){
// Initialize ROS
ros::init (argc, argv, "sabir");
ros::NodeHandle nh;

 // Create a ROS subscriber for the input point cloud
ros::Subscriber sub = nh.subscribe ("input", 1, cloud_cb);

// Create a ROS publisher for the output point cloud
pub = nh.advertise<sensor_msgs::PointCloud2> ("output", 1);

// Spin
ros::spin ();
}
2014-07-10 09:02:45 -0500 received badge  Popular Question (source)
2014-07-09 09:53:54 -0500 commented answer passthrough filter error

Marti, I tried but it did not or I could not

2014-07-09 07:48:28 -0500 asked a question passthrough filter error

hi, I want to do obstacle avoidance using two filter but I get the following error:

/home/esetron/catkin_ws/src/sabir/src/sabir_node.cpp: In function ‘void cloud_cb(const PCLPointCloud2ConstPtr&)’:
/home/esetron/catkin_ws/src/sabir/src/sabir_node.cpp:25:53: error: no matching function for call to ‘pcl::PassThrough<pcl::PCLPointCloud2>::setInputCloud(pcl::PCLPointCloud2&)’
/home/esetron/catkin_ws/src/sabir/src/sabir_node.cpp:25:53: note: candidate is:
/usr/include/pcl-1.7/pcl/pcl_base.h:204:7: note: void pcl::PCLBase<pcl::PCLPointCloud2>::setInputCloud(const PCLPointCloud2ConstPtr&)
/usr/include/pcl-1.7/pcl/pcl_base.h:204:7: note:   no known conversion for argument 1 from ‘pcl::PCLPointCloud2’ to ‘const PCLPointCloud2ConstPtr& {aka const boost::shared_ptr<const pcl::PCLPointCloud2>&}’
make[2]: *** [sabir/CMakeFiles/sabir_node.dir/src/sabir_node.cpp.o] Error 1
make[1]: *** [sabir/CMakeFiles/sabir_node.dir/all] Error 2
make: *** [all] Error 2

Actually, when I added to code line "pass_through_filter.setInputCloud(cloud_filtered);", I am getting the current error. why I am getting this error?

thanks

my code:

#include <ros/ros.h>
    #include <iostream>
    // PCL specific includes
     #include <pcl_conversions/pcl_conversions.h>
     #include <sensor_msgs/PointCloud2.h>
    #include <pcl/point_cloud.h>
    #include <pcl/point_types.h>
    #include <pcl/filters/passthrough.h>
    #include <pcl/filters/voxel_grid.h>

    ros::Publisher pub;

    void cloud_cb(const pcl::PCLPointCloud2ConstPtr& input)
    {

      pcl::PCLPointCloud2 cloud_filtered;
      pcl::VoxelGrid<pcl::PCLPointCloud2> sor;

    sor.setInputCloud(input);
    sor.setLeafSize(0.01, 0.01, 0.01);
    sor.filter(cloud_filtered);

    // Create the appropriate pass-through filter
        pcl::PassThrough<pcl::PCLPointCloud2> pass_through_filter;
        pass_through_filter.setInputCloud(cloud_filtered);

    // Publish the data
    pub.publish(cloud_filtered);
    }

    int main (int argc, char** argv){
    // Initialize ROS
    ros::init (argc, argv, "sabir");
    ros::NodeHandle nh;

     // Create a ROS subscriber for the input point cloud
    ros::Subscriber sub = nh.subscribe ("input", 1, cloud_cb);

    // Create a ROS publisher for the output point cloud
    pub = nh.advertise<sensor_msgs::PointCloud2> ("output", 1);

    // Spin
    ros::spin ();
    }
2014-07-07 00:32:25 -0500 received badge  Notable Question (source)
2014-07-04 04:02:10 -0500 received badge  Popular Question (source)
2014-07-04 02:30:05 -0500 commented answer rosrun executable or found error

thank you Ahendrix, I forgot to do the third suggestion.

2014-07-04 02:29:10 -0500 answered a question rosrun executable or found error

thank you Ahendrix, I forgot to do the third suggestion.

2014-07-04 02:23:05 -0500 received badge  Scholar (source)
2014-07-04 02:19:47 -0500 received badge  Supporter (source)
2014-07-03 10:25:52 -0500 asked a question rosrun executable or found error

hi, I used to hydro distribution of ros. I take to following error therefore I leave no stone unturned unfortunately I didn't correct. how can I correct this error?

Thank you in advance.

**"$rosrun my_pcl_tutorial example input:=/narrow_stereo_textured/points2

[rosrun] Couldn't find executable named example below /home/esetron/catkin_ws/src/my_pcl_tutorial

[rosrun] Found the following, but they're either not files,

[rosrun] or not executable:

[rosrun] /home/esetron/catkin_ws/src/my_pcl_tutorial/src/example"**

2014-07-03 09:55:11 -0500 answered a question rosrun not finding executable

hi, I used to hydro distribution of ros. I take to same error but I didn't correct. how can I correct this error? Thank you in advance.

"$rosrun my_pcl_tutorial example input:=/narrow_stereo_textured/points2

[rosrun] Couldn't find executable named example below /home/esetron/catkin_ws/src/my_pcl_tutorial

[rosrun] Found the following, but they're either not files,

[rosrun] or not executable:

[rosrun] /home/esetron/catkin_ws/src/my_pcl_tutorial/src/example"