Gazebo | Ignition | Community
Ask Your Question
1

Player with Gazebo: libprotobuf error messages.

asked 2013-10-11 06:02:08 -0600

JOON gravatar image

updated 2013-10-11 06:05:15 -0600

Hello,

I'm trying to control Pioneer2dx with Player, and visualize in Gazebo. I'm using Gazebo 1.9.1, Player 3.0.2.

I made the model of Pioneer2dx with Hokuyo laser on it in the Gazebo world. When I the Gazebo world file, and execute 'position2d.cfg', which is one of the example file. And used simple client 'playerv'. Here is my 'position2d.cfg' file.

driver

(

name "gazebo"

provides ["simulation:0"]

plugin "libgazebo_player"

# The name of a runnign Gazebo world, specified in a .world file

world_name "default"

)

driver

(

name "gazebo"

provides ["position2d:0"]

# This name must match the name of a model in the "default" world

model_name "pioneer2dx"

)

Controlling the pioneer with gui by 'command' menu was fine. The problem is, When I subscribe position2d:0, the terminal window which executed 'position2d.cfg' emits error messages repeatedly. The error message is following.

libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "gazebo.msgs.Pose_V" because it is missing required fields: pose[0].position, pose[0].orientation

And also, I couldn't see the laser output in playerv. This time I executed 'laser.cfg', and wanted to subscribe laser:0 with playerv. Then it also emitted following errors.

libprotobuf ERROR google/protobuf/wire_format.cc:1059] Encountered string containing invalid UTF-8 data while parsing protocol buffer. Strings must contain only UTF-8; use the 'bytes' type for raw bytes. libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "gazebo.msgs.LaserScan" because it is missing required fields: angle_min, angle_max, angle_step, range_min, range_max, world_pose.position, world_pose.orientation

The error messages are the same when I use my own client program to set speed of Pioneer or read from robot. I think the position2d and laser error messages come from the same cause.

I have no idea where these error come from.. Any ideas?

Thanks in advance!! :)

Joon.

edit retag flag offensive close merge delete

Comments

I have a similar problem here. Can any one pitch in on this?

K. Zeng gravatar imageK. Zeng ( 2014-11-14 14:08:51 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-12-04 15:34:57 -0600

rmattes gravatar image

The Player interface in gazebo is out of date, you'll need the fixes in https://bitbucket.org/osrf/gazebo/pull-request/1324/update-to-player-interfaces/diff to fix it.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-11 06:02:08 -0600

Seen: 1,748 times

Last updated: Dec 04 '14