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

find 3D location of the sensor when a depth image arrives

asked 2017-03-06 06:02:17 -0500

Rai gravatar image

updated 2017-03-07 12:37:39 -0500

Hey buddies! I went through the forum and couldn't find a satisfying answer. Sorry, if I reopened an already-answered question.

Basically, I need to write a ROS node that will print the 3D location of the sensor and the timestamp in a text format when it detects a depth image.

Here is what I think I should do (tho I don't know how to):

  1. Build a robot with odometer and mount a web camera on it.
  2. Create a node that will publish odometer's data. ->odom_node
  3. Create a node that will detect 3D images. -> cam_node
  4. I somehow will make the odom_node to listen to the cam_node.

I have thousands of questions to ask but that would make it too broad, I don't really know where to start. Could someone direct me to some good tutorials and projects where I can learn and finish the project on my own?

I appreciate all the answers. Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-03-10 09:20:16 -0500

richkappler gravatar image

There are many questions before help can be offered.

print the 3D location of the sensor and the timestamp in a text format when it detects a depth image

Location of the sensor in relation to what? It's position on the map I would presume, so first you would have to create the map.

Print to where (and why??)? I have little information to go on, but am presuming you are using this for navigation (create map with sensor, use map to navigate around the space). If this is not the case, you need to provide more information. If it is the case, look at mapping and the NAV stack.

1,2, & 3 are fairly straightforward. 4, not so much. Why would odom_node listen to cam_node? They each publish information that is used by higher level functions.

regards, Richard

edit flag offensive delete link more

Comments

Thank you for your quick answer. The output should look like this:

FORMAT: One line per message DEPTHIMAGE <timestamp.sec>.<timestamp.usec> <camera pose="" w.r.t.="" odom="" frame="" (x,y,z,qx,qy,qz,qw)&gt;="" <="" p="">

Please excuse my lack of knowledge about it. I just started learning ROS.

Rai gravatar image Rai  ( 2017-03-10 10:15:40 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-03-06 06:02:17 -0500

Seen: 229 times

Last updated: Mar 10 '17