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

Hydro kinect fake laser for slam

asked 2014-01-23 02:17:48 -0600

acp gravatar image

updated 2016-10-24 08:35:39 -0600

ngrennan gravatar image

Dear All:

I have a fake laser based on the Xtion Pro. I was running Groovy and it worked perfectly.

I updated to Hydro and I can not see the topic of 2D fake laser.

The code in my launch file is:

<include file="$(find openni_launch)/launch/openni.launch"/> 
<node pkg="nodelet" type="nodelet" name="kinect_laser" args="load depthimage_to_laserscan/DepthImageToLaserScanNodelet camera_nodelet_manager"> 
 <param name="scan_height" value="290"/> <!-- height in pixels -->
    <param name="scan_time" value="0.125"/>
    <param name="range_min" value="0.80"/>
    <param name="range_max" value="3.0"/>
    <param name="min_height" value=".10"/>
    <param name="max_height" value="2.0"/>
<remap from="image" to="/camera/depth/image_raw"/> 

<remap from="scan" to="/scan_xtion"/>   
</node>

The topic /scan_xtion shall have the 2D Xtion data, but I can not visualize anything with rostopic echo /scan_xtion.

Do you have any clue.

In advance thank you

edit retag flag offensive close merge delete

Comments

Can you include the error output?

Athoesen gravatar image Athoesen  ( 2014-01-23 09:11:47 -0600 )edit

Well, there are no errors, it compile quite well, however I cant read the /scan_xtion topic

acp gravatar image acp  ( 2014-01-23 21:34:06 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-01-24 00:44:39 -0600

acp gravatar image

updated 2014-01-24 00:52:25 -0600

Well I solved it like this:

1.- cd to the /sandbox directory that has been created by rosws
2.- Add the repository to the overlay, e.g. it is added to ~/working_space/sandbox/.rosinstall

    rosws set  -y depthimage_to_laserscan  --git <a href="https://github.com/ros-perception/depthimage_to_laserscan.git">https://github.com/ros-perception/depthimage_to_laserscan.git</a> 

3.- update the rosws
    rosws update depthimage_to_laserscan
4.- source ~/.bashrc 
5.- cd to depthimage_to_laserscan and run cmake . and make

The launch file may look like this:

  <launch>
<include file="$(find openni_launch)/launch/openni.launch"/> 
    <node pkg="depthimage_to_laserscan" type="depthimage_to_laserscan" name="depthimage_to_laserscan" args="image:=/camera/depth/image_raw" respawn="true"> 
       <!--param name="output_frame_id" value="/camera_depth_frame"/-->
       <param name="scan_height" value="290"/> 
        <param name="scan_time" value="0.125"/>
        <param name="range_min" value="0.80"/>
        <param name="range_max" value="3.0"/>
        <param name="min_height" value=".10"/>
        <param name="max_height" value="2.0"/>
        <remap from="/scan" to="/scan_xtion"/>  
    </node>
    </launch>

Then run:

rosrun rviz rviz and the fake kinect can be seen under the topic /scan_xtion

Cheers

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-01-23 02:17:48 -0600

Seen: 1,285 times

Last updated: Jan 24 '14