Gazebo | Ignition | Community
Ask Your Question
0

No matching function for call to ‘Set(gazebo::msgs::Vector3d*, ignition::math::Vector3d)’ [closed]

asked 2016-02-26 09:17:49 -0500

this post is marked as community wiki

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

Hi,

I'm following the Gazebo Tutorials.

I haven't had any problem until the World plugins and Programmatic World Control tutorial.

Output of command make

/home/doliveira/gazebo_teste/world_edit.cc: In member function ‘virtual void gazebo::WorldEdit::Load(gazebo::physics::WorldPtr, sdf::ElementPtr)’:
/home/doliveira/gazebo_teste/world_edit.cc:36:49: error: no matching function for call to ‘Set(gazebo::msgs::Vector3d*, ignition::math::Vector3d)’
           ignition::math::Vector3d(0.01, 0, 0.1));
                                                 ^
In file included from /usr/include/gazebo-4.0/gazebo/gazebo_core.hh:21:0,
                 from /usr/include/gazebo-4.0/gazebo/gazebo.hh:20,
                 from /home/doliveira/gazebo_teste/world_edit.cc:3:
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:141:10: note: candidate: void gazebo::msgs::Set(gazebo::common::Image&, const gazebo::msgs::Image&)
     void Set(common::Image &_img, const msgs::Image &_msg);
          ^
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:141:10: note:   no known conversion for argument 1 from ‘gazebo::msgs::Vector3d*’ to ‘gazebo::common::Image&’
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:165:10: note: candidate: void gazebo::msgs::Set(gazebo::msgs::Image*, const gazebo::common::Image&)
     void Set(msgs::Image *_msg, const common::Image &_i);
          ^
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:165:10: note:   no known conversion for argument 1 from ‘gazebo::msgs::Vector3d*’ to ‘gazebo::msgs::Image*’
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:171:10: note: candidate: void gazebo::msgs::Set(gazebo::msgs::Vector3d*, const gazebo::math::Vector3&)
     void Set(msgs::Vector3d *_pt, const math::Vector3 &_v);
          ^
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:171:10: note:   no known conversion for argument 2 from ‘ignition::math::Vector3d {aka ignition::math::Vector3<double>}’ to ‘const gazebo::math::Vector3&’
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:177:10: note: candidate: void gazebo::msgs::Set(gazebo::msgs::Vector2d*, const gazebo::math::Vector2d&)
     void Set(msgs::Vector2d *_pt, const math::Vector2d &_v);
          ^
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:177:10: note:   no known conversion for argument 1 from ‘gazebo::msgs::Vector3d*’ to ‘gazebo::msgs::Vector2d*’
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:183:10: note: candidate: void gazebo::msgs::Set(gazebo::msgs::Quaternion*, const gazebo::math::Quaternion&)
     void Set(msgs::Quaternion *_q, const math::Quaternion &_v);
          ^
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:183:10: note:   no known conversion for argument 1 from ‘gazebo::msgs::Vector3d*’ to ‘gazebo::msgs::Quaternion*’
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:189:10: note: candidate: void gazebo::msgs::Set(gazebo::msgs::Pose*, const gazebo::math::Pose&)
     void Set(msgs::Pose *_p, const math::Pose &_v);
          ^
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:189:10: note:   no known conversion for argument 1 from ‘gazebo::msgs::Vector3d*’ to ‘gazebo::msgs::Pose*’
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:195:10: note: candidate: void gazebo::msgs::Set(gazebo::msgs::Color*, const gazebo::common::Color&)
     void Set(msgs::Color *_c, const common::Color &_v);
          ^
/usr/include/gazebo-4.0/gazebo/msgs/msgs.hh:195:10: note:   no known conversion for argument 1 from ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by OhMeuMenino
close date 2016-02-26 19:07:13.264048

1 Answer

Sort by » oldest newest most voted
1

answered 2016-02-26 11:20:04 -0500

chapulina gravatar image

Functions which use ignition::math probably don't work with Gazebo 4, you're probably trying a tutorial for a later version.

These versions of the tutorials should work for you:

As for not being able to install Gazebo7, I suggest you open a new question with more details so someone can help you out.

edit flag offensive delete link more

Comments

Thank you, it works! I will create another question about Gazebo 7 installation.

OhMeuMenino gravatar imageOhMeuMenino ( 2016-02-26 19:06:07 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-02-26 09:17:49 -0500

Seen: 1,182 times

Last updated: Feb 26 '16