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

How could I launch "octomap_server>octomap_mapping.launch" with "openni_launch>openni.launch"?

asked 2013-11-25 09:42:10 -0600

Mohsen Hk gravatar image

updated 2014-01-28 17:07:34 -0600

ngrennan gravatar image

How could i do?


Update 1:

Hi my friend, i hava robot location in 2D mapping without any odometry. and i wanna 3d mapping with xtion.

i did it just for launch!

mrl-x200@mrlx200-ThinkPad-X200:~$ roscd
mrl-x200@mrlx200-ThinkPad-X200:~/fuerte_workspace$ roscreate-pkg mapping_3d    std_msgs roscpp
mrl-x200@mrlx200-ThinkPad-X200:~/fuerte_workspace$ nautilus mapping_3dstd_msgs/
[/home/mrl-x200/fuerte_workspace/mapping_3dstd_msgs]
[right_click->    create new document->    empty document] && [name=do.launch]

<?xml version="1.0"?>
<launch>
    <include file="$(find openni_launch)/launch/openni.launch"/>
    <node pkg="octomap_server" type="octomap_server_node" name="octomap_server" output="screen">
        <param name="resolution" value="0.05" />       
        <param name="frame_id" type="string" value="camera_link" />
        <param name="base_frame_id" type="string" value="camera_link" />
        <param name="sensor_model/max_range" value="5.0" />
        <remap from="cloud_in" to="camera/depth/points" />
    </node>
</launch>

mrl-x200@mrlx200-ThinkPad-X200:~/fuerte_workspace$ roslaunch mapping_3d do.launch
mrl-x200@mrlx200-ThinkPad-X200:~/fuerte_workspace$ rosrun rviz rviz

now I trying with hector_mapping

<?xml version="1.0"?>
<launch>
    <include file="$(find openni_launch)/launch/openni.launch"/>

    <node pkg="tf" type="static_transform_publisher" name="camera_link" args="0 0 0 0 0 0 base_footprint camera_link 100" />

    <node pkg="octomap_server" type="octomap_server_node" name="octomap_server" output="screen">
        <param name="resolution" value="0.1" />     
        <param name="frame_id" type="string" value="map" />
        <param name="base_frame_id" type="string" value="base_footprint" />
        <param name="sensor_model/max_range" value="5.0" />
        <remap from="cloud_in" to="camera/depth/points" />
    </node> 
</launch>

What is your opinion? :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-11-25 21:06:36 -0600

timster gravatar image

updated 2013-11-25 22:41:22 -0600

I haven't used hector_mapping myself, but from the documentation I understand it publishes a tf from map to odom. So I think you need to add another static transform publisher to define a transformation between base_footprint and odom. Does that help?

Best

Tim

edit flag offensive delete link more

Comments

1

tnx, question updated.

Mohsen Hk gravatar image Mohsen Hk  ( 2013-11-25 22:28:52 -0600 )edit

if my answer solved your question, please accept it as an answer (;

timster gravatar image timster  ( 2013-12-18 21:20:32 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-11-25 09:42:10 -0600

Seen: 946 times

Last updated: Nov 25 '13