Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

Using projectors in Gazebo 1.9 + ROS Hydro?

I was trying to create an example projector project to demonstrate some problems I was having with projector poses, but couldn't get the texture to appear at all, there is just what appears a default error image with yellow diagonal bars on black.

example image on github, (don't have karma to upload and providing a link isn't working)

This is the xacro file responsible:

<?xml version="1.0"?>
<robot xmlns:xacro="" name="projector_test">

<link name="world"/>

<link name="link_projector">
      <cylinder length="0.2" radius="0.05" />
    <mass value="1.0"/>
    <inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0" />

<joint name="joint_projector" type="fixed">
  <origin xyz="0 0 2.0" rpy="0.0 0 0" />
  <parent link="world" />
  <child link="link_projector" />

<gazebo reference="link_projector">
  <projector name="projector_test1">
    <pose>0 0 0 0 0 0</pose>
    <!-- this isn't getting loaded properly -->
    <texture>$(find projector_test)/urdf/test_pattern.png</texture>


This is from projector test, there is also a launch file there and catkin package.xml and CMake files, roslaunch projector_test projector_test.launch launches it.

In another project I was able to make projectors work somewhat, I had the png in a meshes dir and I think that because another resource was loaded from the same directory (and which had a full path) the png was able to be found.