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

Latif Anjum's profile - activity

2023-05-08 08:43:39 -0500 marked best answer Getting individual joint positions in openni_tracker

Hi all,

I have openni_tracker running and publishing at /tf. I get following type of data if I try to publish /tf or save it in rosbag or text file.

transforms: 
  - 
    header: 
      seq: 0
      stamp: 
        secs: 1395050118
        nsecs: 781445267
      frame_id: /openni_depth_frame
    child_frame_id: /left_hand_1
    transform: 
      translation: 
        x: 2.29258546773
        y: 0.40955856152
        z: 0.746916322515
      rotation: 
        x: 0.499999999997
        y: 0.500001836603
        z: 0.499999999997
        w: 0.499998163397
---
transforms: 
  - 
    header: 
      seq: 0
      stamp: 
        secs: 1395050118
        nsecs: 781469499
      frame_id: /openni_depth_frame
    child_frame_id: /right_shoulder_1
    transform: 
      translation: 
        x: 2.45040462809
        y: -0.0277115992896
        z: 0.594173250142
      rotation: 
        x: 0.713314685492
        y: 0.667630701545
        z: 0.17342876346
        w: -0.123991410271
//--- and so on!

How can I subscribe to individual joints position, e.g. to only right_shoulder_1? I tried /tf/right_shoulder_1 but it didn't work. Shouldn't I be able to get even the translation of a joint? For example /tf/right_shoulder_1/translation/x should give me x translation position of right_shoulder_1.

The data saved together with all joints makes it difficult to use. I also need individual joint data in inside a program.

Thanks.

2018-07-09 11:09:53 -0500 received badge  Famous Question (source)
2018-07-09 11:09:53 -0500 received badge  Notable Question (source)
2018-07-09 11:09:53 -0500 received badge  Popular Question (source)
2015-12-14 00:47:12 -0500 received badge  Nice Question (source)
2015-09-01 00:15:37 -0500 received badge  Famous Question (source)
2015-07-01 13:11:45 -0500 received badge  Famous Question (source)
2015-07-01 13:11:45 -0500 received badge  Popular Question (source)
2015-07-01 13:11:45 -0500 received badge  Notable Question (source)
2015-06-13 18:29:19 -0500 marked best answer Unable to #include pcl files in header

Hi there,

I am trying to understand how to publish and subscribe to a PointCloud2 data from Kinect. Here is a sample program that publishes a PointCloud data.

#include <ros/ros.h>
#include <pcl_ros/point_cloud.h>
#include <pcl/point_types.h>

typedef pcl::PointCloud<pcl::PointXYZ> PointCloud;

int main(int argc, char** argv)
{
  ros::init (argc, argv, "pub_pcl");
  ros::NodeHandle nh;
  ros::Publisher pub = nh.advertise<PointCloud> ("points2", 1);

  PointCloud::Ptr msg (new PointCloud);
  msg->header.frame_id = "some_tf_frame";
  msg->height = msg->width = 1;
  msg->points.push_back (pcl::PointXYZ(1.0, 2.0, 3.0));

  ros::Rate loop_rate(4);
  while (nh.ok())
  {
    msg->header.stamp = ros::Time::now ();
    pub.publish (msg);
    ros::spinOnce ();
    loop_rate.sleep ();
  }
}

However, there are errors. My system cannot find files #include <pcl_ros/point_cloud.h> and #include <pcl/point_types.h>. I tried to search for the files, and got them under /pcl-1.5/pcl/point_types.h.

I tried to #include the above path. Now the error changed to fatal error: Eigen/StdVector: No such file or directory, compilation terminated.

Here are my Questions:

  1. Why I have files under /pcl-1.5/pcl/point_types.h rather than general

    pcl/point_types.h? Does it make a difference. Same question for pcl_ros/point_cloud.h

  2. What am I doing wrong? why an already given code is not running properly?

  3. I have no folder called pcl_ros. Why?

Any answer will be appreciated.

2015-02-24 08:46:41 -0500 received badge  Famous Question (source)
2015-01-07 11:06:55 -0500 marked best answer Problems with openni_tracker launching

Hi,

I am trying to use openni_tracker. I have ros-fuerte-openni* installed. roslaunch openni_launch openni.launch is working properly and I can see the image in rviz. However, when I run rosrun openni_tracker openni_tracker, initially there was the following error.

Find user generator failed: This operation is invalid!

I googled for the solution to this problem and was instructed to install NITE-bin-dev-linux-64-v1.5.2.23. Now the error has change to the following.

Find user generator failed: Can't create any node of the requested type!

Any help?

2014-12-23 15:55:32 -0500 received badge  Famous Question (source)
2014-11-26 09:56:35 -0500 received badge  Notable Question (source)
2014-10-14 04:06:17 -0500 received badge  Popular Question (source)
2014-10-13 05:31:40 -0500 received badge  Famous Question (source)
2014-10-10 08:23:07 -0500 commented answer Using rgbdslam with .oni files

The patch link is not working. Can you provide a working link?

2014-10-10 08:12:17 -0500 commented answer How to extract a point cloud from Kinect recorded videos (.oni files)

thank you. I got the answer from the second link you provided.

2014-10-09 07:13:49 -0500 asked a question How to extract a point cloud from Kinect recorded videos (.oni files)

Hi there,

When a live Kinect is connected, launching openni with roslaunch openni_launch openni.launch starts publishing point clouds at topic /camera/depth/points.

I have videos recorded from Kinect in OpenNI file format (.oni). Can I extract point clouds from these videos? Is there is away openni.launch can be executed with these videos or without live camera?

Thanks.

2014-09-21 05:55:40 -0500 received badge  Famous Question (source)
2014-08-02 03:55:47 -0500 received badge  Famous Question (source)
2014-07-07 04:30:33 -0500 received badge  Editor (source)
2014-07-07 04:27:21 -0500 asked a question openni_tracker for multiple users

Hi,

I have previously done skeleton tracking using openni_tracker with only one user. Interestingly, openni_tracker can also detect multiple users and hopefully track them. I have tried doing it but the following problem occurred.

  1. It detects users 1 and also detects his Psi pose.
  2. When the second user comes into the frame, it detects second user but does not detect his Psi pose
  3. It does not start tracking any of them.

Here is what happens: image description

Any one who can possibly comment on the correct usage of openni_tracker for multiple user tracking is welcomed.

2014-06-02 18:24:53 -0500 received badge  Notable Question (source)
2014-05-30 19:20:06 -0500 received badge  Popular Question (source)
2014-05-29 00:41:14 -0500 commented question OpenNI skeleton tracking still requires psi pose for calibration. How to enable the auto calibration

Hi, I have ubuntu 12.04 and NITE-Bin-Dev-Linux-x86-v1.5.2.23 but still require Psi Pose. Its very annoying. Any solution?

2014-05-29 00:32:07 -0500 asked a question Is Psi Pose necessary for openni tracker to track?

Hi,

I am using openni_tracker for some part of my project. However, the fact the openni_tracker does not work unless it detects Psi Pose is very annoying. Is there a way I can avoid making Psi Pose and still track using openni_tracker?

Much appreciated.

Edit 1: I have ubuntu 12.04 and NITE-Bin-Dev-Linux-x86-v1.5.2.23 installed.

2014-05-28 04:02:32 -0500 received badge  Famous Question (source)
2014-05-28 04:00:50 -0500 asked a question Storing the data inside an array as rosbag

Hi,

Is there a way I can store data in my array (inside a c++ program) as rosbag? Just like I can store it as txt or csv file. I know we can store data being published over a ros topic as rosbag but I am wondering if I can do that without publishing the data on rostopic.

regards