Hokuyo Senser not working
Hi,
I am using ROS kinetic and Gazebo 7.8.1 I want to connect Hokuyo sensor to Turtlebot. I can see a box representing Hokuyo sensor on the Turtlebot but the sensor is not scanning the world.
Here is my specification
**kobuki_hexagons_kinect_hokuyo.urdf.xacro file**
<?xml version="1.0"?>
<robot name="turtlebot" xmlns:xacro="http://ros.org/wiki/xacro">
<xacro:include filename="$(find turtlebot_description)/urdf/turtlebot_common_library.urdf.xacro" />
<xacro:include filename="$(find kobuki_description)/urdf/kobuki.urdf.xacro" />
<xacro:include filename="$(find turtlebot_description)/urdf/stacks/hexagons.urdf.xacro"/>
<xacro:include filename="$(find turtlebot_description)/urdf/sensors/hokuyo.urdf.xacro"/>
<kobuki/>
<stack_hexagons parent="base_link"/>
<sensor_hokuyo parent="base_link"/>
</robot>
**hokuyo.urdf.xacro file**
<?xml version="1.0"?>
<robot name="sensor_hokuyo" xmlns:xacro="http://ros.org/wiki/xacro">
<xacro:include filename="$(find turtlebot_description)/urdf/turtlebot_gazebo_brass.urdf.xacro"/>
<xacro:include filename="$(find turtlebot_description)/urdf/turtlebot_properties.urdf.xacro"/>
<xacro:macro name="sensor_hokuyo" params="parent">
<joint name="laser" type="fixed">
<origin xyz="0.15 0.0 0.360" rpy="3.14159 0.0 0.0" />
<parent link="${parent}" />
<child link="base_laser_link" />
</joint>
<link name="base_laser_link">
<visual>
<geometry>
<box size="0.05 0.05 0.05"/>
</geometry>
<material name="Green"/>
</visual>
<inertial>
<mass value="0.000001" />
<origin xyz="0 0 0" rpy="0 0 0"/>
<inertia ixx="0.0001" ixy="0.0" ixz="0.0"
iyy="0.0001" iyz="0.0"
izz="0.0001" />
</inertial>
</link>
<!-- Set up laser gazebo details -->
<hokuyo_laser />
</xacro:macro>
</robot>
**turtlebot_gazebo_brass.urdf.xacro file**
<xacro:macro name="hokuyo_laser">
<gazebo reference="base_laser_link">
<sensor type="ray" name="laser">
<pose>0 0 0 0 0 0</pose>
<visualize>false</visualize>
<update_rate>40</update_rate>
<ray>
<scan>
<horizontal>
<samples>720</samples>
<resolution>1</resolution>
<min_angle>-1.570796</min_angle>
<max_angle>1.570796</max_angle>
</horizontal>
</scan>
<range>
<min>0.10</min>
<max>30.0</max>
<resolution>0.01</resolution>
</range>
<noise>
<type>Gaussian</type>
<mean>0.0</mean>
<stddev>0.01</stddev>
</noise>
</ray>
<plugin name="hokuyo_node" filename="libgazebo_ros_laser.so">
<topicName>/hokuyo_laser</topicName>
<frameName>base_laser_link</frameName>
</plugin>
</sensor>
</gazebo>
</xacro:macro>
</robot>
Do you use the standard description package of the Turtlebot?
Please say more about what do you mean from the standard description of the Turtlebot. I am using the launch files provided with turtlebot_gazebo package (obviously with some modifications to add hokuyo sensor).