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

Pitscho's profile - activity

2014-03-13 03:05:58 -0500 received badge  Famous Question (source)
2014-01-28 17:26:21 -0500 marked best answer image_geometry Rectification -> remove black Pixels

Hi

I decided to do all Camera Stuff ith die image_geometry class provided by the opencv package.

Prior I rectified my camera image with:

getOptimalNewCameraMatrix initUndistortRectifyMap remap

This worked well, i could choose to show the black pixels at the edges or to cut an size the image so it only has valid pixels.

With image_geometry and the pinhole camera model class i don't see a way so rectify the image AND remove all regions with unvalid pixels.

Does someone know how?

THX

2013-03-12 00:05:09 -0500 received badge  Notable Question (source)
2013-01-16 07:12:44 -0500 received badge  Famous Question (source)
2012-11-08 04:32:02 -0500 received badge  Popular Question (source)
2012-10-21 06:48:19 -0500 asked a question pointcloud access data

Hi

I have a subscribed topic with the type sensor_msgs::PointCloud2.

I do not need the pcl library. I just want to iterate through each point and take the Z value. but i have no clue how to do this with sensor_msgs::PointCloud2 and i dont find an example.

Do I really need pcl for easy element access? Ciao

2012-10-10 15:54:38 -0500 received badge  Famous Question (source)
2012-10-04 04:51:33 -0500 received badge  Teacher (source)
2012-10-01 15:38:05 -0500 received badge  Notable Question (source)
2012-10-01 09:49:02 -0500 received badge  Popular Question (source)
2012-09-27 13:05:30 -0500 asked a question new openni.launch file --> topic gone

Hi

Since the last update the topic

/camera/depth_registered/image

is gone. I used this, because the depth values were in meter.

When I disable registration i have the topic

/camera/depth/image

But this doesn't help me, because i need the registered image. It seems like the update somehow removed the /camera/depth_registered/image topic. Only /camera/depth_registered/image_raw is published.

2012-09-27 10:54:10 -0500 answered a question Odometry arrows displayed in RViz are too small

Hi

You can set the length of the arrows in rviz.

Go to the odometry tree on the left and change the length value to whatever you want.

2012-09-27 10:24:40 -0500 answered a question How to broadcast a transform between /map and /odom

Hi

Boris:
Since static_transform_publisher can be used only to set up transformation between fixed (w.r.t. each other) frames you have to use something like this in your node:

Well is use static_transform_publisher, because in my case odom -> map is static, only two 90° rotations.

I use this in my launch file:

<node pkg="tf" type="static_transform_publisher" name="odom_to_map"
    args="0.1 0  0  -1.570796327 0 -1.570796327  /map /odom 100" />

Search fpr static_transform_publisher in the ROS docu.

2012-09-19 08:36:40 -0500 received badge  Famous Question (source)
2012-09-15 05:20:05 -0500 received badge  Notable Question (source)
2012-08-24 09:12:55 -0500 received badge  Notable Question (source)
2012-08-24 07:11:45 -0500 commented question synchronize kinect rgb/image_color depth/image or points

i installed 11.10 these days after i had ubuntu 12.04. since then my debugger information isn't as accurate as before, i don't know why. i use qtcreator. build type is debug.

2012-08-24 07:10:26 -0500 commented question synchronize kinect rgb/image_color depth/image or points

well, the error message just tells me in which function i have the error, nothing more-

2012-08-24 07:01:36 -0500 commented question synchronize kinect rgb/image_color depth/image or points

i have no idea why it isn't upper case here, but it is in qtcreator

2012-08-24 07:00:30 -0500 received badge  Popular Question (source)
2012-08-24 06:17:51 -0500 commented answer synchronize kinect rgb/image_color depth/image or points

so the data in /camera/depth/pointcloud with xyzrgb information is also not really synchron for positon and color ?

2012-08-24 05:37:56 -0500 commented answer synchronize kinect rgb/image_color depth/image or points

/camera/rgb/image_color and /camera/depth_registered/image at the same time synchron would be perfect

2012-08-24 05:33:04 -0500 commented answer synchronize kinect rgb/image_color depth/image or points

hi, i did that, but .. the two topics i subscribe publish in different frequencies. i need the rgb and d information as synchron as possible.

2012-08-24 05:19:42 -0500 received badge  Editor (source)
2012-08-24 05:12:08 -0500 asked a question synchronize kinect rgb/image_color depth/image or points

-------------------- SOLUTION ----------------- message_filters::TimeSynchronizer... has to be message_filters::Synchronizer... found that out after a day


How to mark as solved ?

Hi

I want to synchronize the image_color and the depth/image topic of a kinect.

both topics have different frequencies. i hoped before that they publish at the same time but sadly not.

is there a way to let these to topics been published simultaneously?


other posibility is to use a topic with rgb and d info, but i need an easy way to get the opencv rgb image.


the only topic i see, which has all info is "depth/points", but I need an opencv RGB image also, an iterative loop over the pointcloud to obtain the opencv image pixel by pixel seems to be studpi, because rgb image topic already exists.


why doesn'T that work:


private:
    message_filters::Subscriber<sensor_msgs::image> image_sub;
    message_filters::Subscriber<sensor_msgs::image> pointcloud_sub;

    message_filters::TimeSynchronizer<sensor_msgs::image, sensor_msgs::image=""> synchronizer;

public :

    // Constructor
    VisualAidingOpenni()
        :  nh("~")/*, it(nh)*/, synchronizer(1), ....

private:
void a function ()... {

        image_sub.subscribe(nh, topic_image, 1);
        pointcloud_sub.subscribe(nh, topic_pointcloud, 1);
        synchronizer.connectInput(image_sub, pointcloud_sub);
        synchronizer.registerCallback(boost::bind(&VisualAidingOpenni::subscriber_Callback,this , _1, _2));
}


void  subscriber_Callback(const sensor_msgs::ImageConstPtr& msg, const sensor_msgs::ImageConstPtr& pointcloud)
    {

...
}

forget the word pointcloud, tried the depth image at last, so everything in sensor_msgs::image


this doesn't even compile


private:
    message_filters::Subscriber<sensor_msgs::image> image_sub;
    message_filters::Subscriber<sensor_msgs::image> pointcloud_sub;
    typedef sync_policies::ApproximateTime<sensor_msgs::image, sensor_msgs::image=""> MySyncPolicy;
    message_filters::TimeSynchronizer<mysyncpolicy> synchronizer;

void function()
{
        image_sub = new message_filters::Subscriber(nh, topic_image, 1);
        pointcloud_sub = new message_filters::Subscriber(nh, topic_pointcloud, 1);
        synchronizer = new message_filters::TimeSynchronizer<mysyncpolicy>(MySyncPolicy(10), image_sub, pointcloud_sub);
 synchronizer.registerCallback(boost::bind(&VisualAidingOpenni::subscriber_Callback,this , _1, _2));

}

void  subscriber_Callback(const sensor_msgs::ImageConstPtr& msg, const sensor_msgs::ImageConstPtr& pointcloud)
    {

i get this error


/opt/hector/students/friedrich/hector_visual_aiding/hector_visaid_monocular/src/visual_aiding_openni.cpp:-1: In Elementfunktion »void VisualAidingOpenni::CamInfo_Callback(const CameraInfoConstPtr&)«:
:-1: Fehler:[CMakeFiles/visual_aiding_openni.dir/src/visual_aiding_openni.o] Fehler 1

THX

2012-08-24 05:06:34 -0500 received badge  Popular Question (source)
2012-08-14 10:30:55 -0500 commented answer Kinect roslaunch error messages

Doesn't work for me either. I also run Ubuntu 12.04 64bit fresh updated.