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

barcelosandre's profile - activity

2014-01-16 07:04:08 -0500 answered a question Getting RGB's pixel related coordinate in pointcloud (real world) with openni

Is that right if I search into pointcloud vector with this method?

I want the pointcloud index to rgb pixel h=240,w=320 (the center of rgb image).

void cloud_cb(const sensor_msgs::PointCloud2 cloud)
{
int pcl_index, rgb_h, rgb_w;
rgb_h = 240;
rgb_w = 320;
pcl_index = (h*480) + rgb_w; // result is 115520
pcl::PointCloud<pcl::pointxyz> point_pcl;
pcl::fromROSMsg(cloud,point_pcl);
std::cout << "(x,y,z) = " << point_pcl.at(pcl_index) << std::endl;
}

will it return the point in the pointcloud for the center pixel of the rgb camera?

thank you,

2014-01-13 05:28:17 -0500 received badge  Famous Question (source)
2013-11-27 01:20:35 -0500 received badge  Notable Question (source)
2013-11-22 03:27:22 -0500 commented answer Converting Kinect depth image to Real world coordinate.

I want the x,y,z from real world. OpenNi has a pointcloud topic, in rviz i see a "color transform" (RGB8) option, each point is related with an pixel from the rgb camera. I just want to know how to return the specific point from pointcloud giving the rgb pixel, thus, To get the x,y,z from real world

2013-11-22 01:57:10 -0500 received badge  Popular Question (source)
2013-11-21 08:39:16 -0500 asked a question Getting RGB's pixel related coordinate in pointcloud (real world) with openni

Someone knows how to discover the pointcloud "pixel"(x,y,z in real world) giving a pixel (v,u) from RGB camera?

I am using a feature descriptor (ORB) in RGB frame (/camera/rgb/image_color) its returns the u,v from the plannar image, I want a relation of this RGB pixel (feature) to get the real world coordinate in pointcloud topic (/camera/depth_registered/points).

2013-11-20 09:22:14 -0500 answered a question Converting Kinect depth image to Real world coordinate.

Someone knows how to discover the pointcloud "pixel"(x,y,z in real world) giving a pixel from RGB camera?

I am using a feature descriptor (ORB) in RGB frame (/camera/rgb/image_color) its returns the x,y from the plannar image, I want a relation of this RGB pixel (feature) to get the real world coordinate in pointcloud topic (/camera/depth_registered/points).

2013-10-14 15:57:53 -0500 received badge  Enlightened (source)
2013-10-14 15:57:53 -0500 received badge  Guru (source)
2013-10-04 08:33:50 -0500 received badge  Great Answer (source)
2013-10-04 00:56:27 -0500 received badge  Good Answer (source)
2013-10-03 18:48:35 -0500 received badge  Nice Answer (source)
2013-10-03 07:43:19 -0500 received badge  Teacher (source)
2013-10-03 07:20:07 -0500 answered a question ROS groovy update screwed up workspace setup in some cases?

The solution is delete your "devel" and "build" directories, then make a "catkin_make". It will solve the problem.

2013-10-02 17:03:42 -0500 commented question ROS groovy update screwed up workspace setup in some cases?

I did it! I'm just waiting for an oficial solution! export ROS_ROOT=/opt/ros/groovy/share/ros export ROS_ETC_DIR=/opt/ros/groovy/etc/ros Thank you!

2013-10-02 17:03:01 -0500 answered a question ROS groovy update screwed up workspace setup in some cases?

I did it! I'm just waiting for an oficial solution!

export ROS_ROOT=/opt/ros/groovy/share/ros

export ROS_ETC_DIR=/opt/ros/groovy/etc/ros

Thank you!

2013-08-23 10:21:38 -0500 received badge  Famous Question (source)
2013-08-07 17:17:36 -0500 received badge  Scholar (source)
2013-08-07 17:17:32 -0500 received badge  Supporter (source)
2013-07-30 06:30:39 -0500 received badge  Notable Question (source)
2013-07-29 10:00:42 -0500 received badge  Popular Question (source)
2013-07-28 13:49:08 -0500 asked a question Catkin Eclipse Integration (Type 'sensor_msgs::PointCloud2' could not be resolved)

I am trying to use Eclipse with Catkin. I am having some problems with Index, for example, I have just tried to do this tutorial and Eclipse does not recognizes the index to "sensor_msgs::PointCloud2" (all these type).

I am able to compile the package into Eclipse(CTRL+B), it is working fine, my problem is with the Eclipse indexer.

My steps to make Eclipse compile catkin projects were:

cd ~/catkin_ws
$ catkin_make --force-cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_ECLIPSE_MAKE_ARGUMENTS=-j8
$ source ~/catkin_ws/devel/setup.bash
$ eclipse

File -> Import -> General -> Existing Projects into Workspace...

When I open the .cpp file, I got some errors:

Type 'sensor_msgs::PointCloud2' could not be resolved
Type 'sensor_msgs::PointCloud2ConstPtr' could not be resolved
            ...

But, how I said, I`m able to compile the package, I just have NOT the indexes for this type.

Can you guys help me to make Eclipse index this?

2013-07-28 12:21:45 -0500 answered a question Eclipse and catkin problems (symbol could not be resolved)

You should include those paths:

/usr/include/c++/4.6

/usr/include/c++/4.6/x86_64-linux-gnu

/usr/include/c++/4.6/backward

2013-05-16 12:56:14 -0500 answered a question how to install p2os in ros (groovy version) in ubuntu 12.10

How can I change the URDF files? I have no idea how to starts with.

thank you.

2013-03-19 02:12:44 -0500 received badge  Famous Question (source)
2013-03-12 19:28:45 -0500 received badge  Notable Question (source)
2013-03-08 06:09:58 -0500 received badge  Popular Question (source)
2013-02-26 09:35:40 -0500 answered a question problem with rosws merge

1 - Creating workspace - Criando o workspace:

Choose your ROS version - Dependendo da versão do ROS(a ou b), pode-se fazer em diretórios separados:

a) ROS Fuerte:

rosws init ~/ros-fuerte /opt/ros/fuerte

b) ROS Groovy

rosws init ~/ros-groovy /opt/ros/groovy

3 - Bring ROSAria into workspace - Liberando o workspace criado para o ROSAria

cd ~/ros-<distro>
rosws set --hg amor-ros-pkg https://amor-ros-pkg.googlecode.com/hg
rosws update

4 - Setting up the new workspace - Para configurar o workspace novo, precisamos rodar o script setup.bash

cd ~/ros-<distro>
source ./setup.bash

5 - Checking if download was correctly - Para confirmar que o download foi feito:

rospack profile

6 - Checking if ROS recognize the package - Checando se o ROS reconhece o pacote:

rospack find ROSARIA

7 - Building the package - Compilando o pacote:

sudo rosdep init
rosdep update
rosdep install ROSARIA
rosmake ROSARIA
2013-02-26 09:31:03 -0500 received badge  Editor (source)
2013-02-26 09:27:56 -0500 answered a question Installing ROSAria without ""roslocate info ROSARIA" - Instalação do ROSAria sem utilizar o "roslocate info ROSARIA"

1 - Creating workspace - Criando o workspace:

rosws init ~/ros/opt/ros/fuerte

2 - Choose your ROS version - Dependendo da versão do ROS(a ou b), pode-se fazer em diretórios separados:

a) ROS Fuerte:

rosws init ~/ros-fuerte/opt/ros/fuerte

b) ROS Groovy

rosws init ~/ros-groovy/opt/ros/groovy

3 - Seting up the new workspace - Para configurar o workspace novo, precisamos rodar o script setup.bash

cd ~/ros source ./setup.bash

4 - Bring ROSAria into workspace - Liberando o workspace criado para o ROSAria PLEASE TAKE OFF THE "_" UNDERLINE CHARACTER BEFORE RUN THE SECOND COMMAND(I HAVE NO ENOUGH KARMA TO POST LINKS)

RETIRE O CARACTER "_" UNDERLINE ANTES DE RODAR O SEGUNDO COMANDO(EU NÃO TENHO KARMA SUFICIENTE PARA POSTAR LINKS)

cd ~/ros hg clone https:_//amor-ros-pkg.googlecode.com/hg/ amor-ros-pkg

5 - Checking if download was correctly - Para confirmar que o download foi feito:

rospack profile

6 - Checking if ROS recognize the package - Checando se o ROS reconhece o pacote:

rospack find ROSARIA

7 - Biulding the package - Compilando o pacote:

sudo rosdep init

rosdep update

rosdep install ROSARIA

rosmake ROSARIA

2013-02-26 09:27:07 -0500 asked a question Installing ROSAria without ""roslocate info ROSARIA" - Instalação do ROSAria sem utilizar o "roslocate info ROSARIA"

I'm having problem when I run roslocate from installing tutorial