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

Adding laser sensors to Gazebo

asked 2015-04-10 14:32:00 -0500

nouf gravatar image

Greetings,

I have tried to add laser node to gazebo using the following code:

<include filename="$(find erratic_description)/urdf/erratic_hokuyo_laser.xacro"/>

    <!-- BASE LASER ATTACHMENT -->
    <erratic_hokuyo_laser parent="base_link">
            <origin xyz="0.18 0 0.11" rpy="0 0 0" />
    </erratic_hokuyo_laser>

but I got the following error:

Invalid tag: Cannot load command parameter [robot_description]: command [/opt/ros/indigo/share/xacro/xacro.py /home/nouf/catkin_ws/src/chapter5_tutorials/urdf/robot1_base_03.xacro] returned with code [1].

Param xml is The traceback for the exception was written to the log file

I found out that the erratic_description package doesn't work with indigo version (which I'm currently using). Is there another package or another way to add a laser node to Gazebo ?

Thanks in advance.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2015-04-13 00:26:01 -0500

SVS gravatar image

May be this gazebo tutorials will help I guess . There they mentions about adding lasers in URDf model.

<gazebo reference="your_link_name">
<plugin name="your_link_laser_controller" filename="libgazebo_ros_laser.so">
... plugin parameters ...
</plugin>
</gazebo>
edit flag offensive delete link more
0

answered 2016-03-18 22:18:03 -0500

littlestar gravatar image

Do you has solve this problem? I also learn it and use the same example.But I don't know how to change the code.

edit flag offensive delete link more
0

answered 2016-03-31 15:35:39 -0500

lucasw gravatar image

updated 2016-03-31 15:36:21 -0500

My answer in create a laser in xacro may be useful.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-04-10 14:32:00 -0500

Seen: 3,324 times

Last updated: Mar 31 '16