Ask Your Question
0

Dropping connection on geometry_msgs::Transform

asked 2013-01-09 08:43:28 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I am getting an error

[ERROR] [1357761577.273746553]: Client [/gazebo] wants topic /base_controller/command to have datatype/md5sum [geometry_msgs/Twist/9f195f881246fdfa2798d1d3eebca84a], but our version has [geometry_msgs/Transform/ac9eff44abf714214112b05d54a3cf9b]. Dropping connection.

when I initialize

vel_pub_ = n_.advertise<geometry_msgs::Transform>("cmd_vel", 1);

but if I do it

vel_pub_ =n_.advertise<geometry_msgs::Twist>("cmd_vel", 1);

it works fine ... why cant I do Transform

NOTE: I am trying to work on Pr2 simulator Gazebo..

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-01-09 10:11:46 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

The reason it crashes is simply because the topic you are publishing to is expecting a message of type geometry_msgs::Twist. So, that's the one to send. Simple as that!

edit flag offensive delete link more
0

answered 2013-01-09 22:00:44 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Well then how do I make gazebo Pr2 to expect geometry_msgs::Transform type messages ??

edit flag offensive delete link more

Comments

Please comment on the answer you are refering to instead of writing a new answer.

dornhege gravatar imagedornhege ( 2013-01-09 22:33:15 -0500 )edit

You'd have to modify the gazebo PR2 plugin. But I'd advise against doing that. /cmd_vel ist always expecting a Twist message. If you change that your code will not be compatible at all.

dornhege gravatar imagedornhege ( 2013-01-09 22:34:18 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-01-09 08:43:28 -0500

Seen: 336 times

Last updated: Jan 09 '13