Problem using CameraPublisher plugin gazebo5

asked 2016-05-08 08:07:47 -0500

Taher gravatar image

Hi. I'm trying to load the libCameraPublisher.so into gazebo5 but it gives me this error while spawning my robot: Actually I want to publish the camera's data into a ros topic.

[Err] [Model.cc:770] Model[MyName] is attempting to load a plugin, but detected an incorrect plugin type. Plugin filename[libCameraPlugin.so] name[camera_controller] Here you can see my .launch and model.sdf files:

Launch File:

<launch>
<!-- We resume the logic in empty_world.launch, changing only the name of the world to be launched -->
<param name="robot_description_sdf" textfile="$(find bring_up)/models/pioneer3at/model.sdf" />
<node 
    pkg="gazebo_ros" 
    output="screen"
    respawn="false" 
    name="spawn_model" 
    type="spawn_model" 
    args="-file $(find bring_up)/models/pioneer3at/model.sdf -sdf -x 0 -y 0 -z 1 -model MyName "/>
   </launch>

model.sdf:

<?xml version="1.0" ?>
<sdf version="1.5">
    <model name="pioneer3at">
<pose>0 0 0.180 0 0 0</pose>
<static>false</static>
<link name="chassis">
  <inertial>
    <mass>14.0</mass>
    <inertia>
      <ixx>0.147116667</ixx>
      <ixy>0.0</ixy>
      <ixz>0.0</ixz>
      <iyy>0.334951167</iyy>
      <iyz>0.0</iyz>
      <izz>0.3978345</izz>
    </inertia>
  </inertial>
  <collision name="collision">
    <geometry>
      <box>
        <size>0.501 0.300 0.19</size>
      </box>
    </geometry>
  </collision>
  <visual name="visual">
    <geometry>
      <mesh>
        <uri>model://pioneer3at/meshes/chassis.dae</uri>
      </mesh>
    </geometry>
  </visual>
</link>
<link name="right_front_wheel">
  <pose>0.125 -0.201 -0.06 1.5707 0 0</pose>

  <inertial>
    <mass>1.5</mass>
    <inertia>
      <ixx>0.005240625</ixx>
      <iyy>0.005240625</iyy>
      <izz>0.009075</izz>
      <ixy>0</ixy>
      <ixz>0</ixz>
      <iyz>0</iyz>
    </inertia>
  </inertial>

  <collision name="collision">
    <geometry>
      <cylinder>
        <radius>0.110</radius>
        <length>0.075</length>
      </cylinder>
    </geometry>
    <surface>
      <friction>
        <ode>
          <mu>1</mu>
          <mu2>1</mu2>
          <slip1>0.5</slip1>
          <slip2>0</slip2>
        </ode>
      </friction>
    </surface>
  </collision>
  <visual name="visual">
    <geometry>
      <mesh>
        <uri>model://pioneer3at/meshes/wheel.dae</uri>
      </mesh>
    </geometry>
  </visual>
</link>
<link name="left_front_wheel">
  <pose>0.125 0.201 -0.06 1.5707 0 0</pose>

  <inertial>
    <mass>1.5</mass>
    <inertia>
      <ixx>0.005240625</ixx>
      <iyy>0.005240625</iyy>
      <izz>0.009075</izz>
      <ixy>0</ixy>
      <ixz>0</ixz>
      <iyz>0</iyz>
    </inertia>
  </inertial>

  <collision name="collision">
    <geometry>
      <cylinder>
        <radius>0.110</radius>
        <length>0.075</length>
      </cylinder>
    </geometry>
    <surface>
      <friction>
        <ode>
          <mu>1</mu>
          <mu2>1</mu2>
          <slip1>0.5</slip1>
          <slip2>0</slip2>
        </ode>
      </friction>
    </surface>
  </collision>
  <visual name="visual">
    <geometry>
      <mesh>
        <uri>model://pioneer3at/meshes/wheel.dae</uri>
      </mesh>
    </geometry>
  </visual>
</link>
<link name="right_rear_wheel">
  <pose>-0.125 -0.201 -0.06 1.5707 0 0</pose>

  <inertial>
    <mass>1.5</mass>
    <inertia>
      <ixx>0.005240625</ixx>
      <iyy>0.005240625</iyy>
      <izz>0.009075</izz>
      <ixy>0</ixy>
      <ixz>0</ixz>
      <iyz>0</iyz>
    </inertia>
  </inertial>

  <collision name="collision">
    <geometry>
      <cylinder>
        <radius>0.110</radius>
        <length>0.075</length>
      </cylinder>
    </geometry>
    <surface>
      <friction>
        <ode>
          <mu>1</mu>
          <mu2>1</mu2>
          <slip1>0.5</slip1>
          <slip2>0</slip2>
        </ode>
      </friction>
    </surface>
  </collision>
  <visual name="visual">
    <geometry>
      <mesh>
        <uri>model://pioneer3at/meshes/wheel.dae</uri ...
(more)
edit retag flag offensive close merge delete

Comments

have you installed gazebo5_ros_pkgs?

l0g1x gravatar image l0g1x  ( 2016-05-09 12:01:33 -0500 )edit

yes. i did it.

Taher gravatar image Taher  ( 2016-05-09 13:08:48 -0500 )edit