Ask Your Question
0

hrwros_gazebo package gives me error when I do 'catkin build'. Does anyone understand error ? I am using gazebo 9 on ubuntu 18.

asked 2019-09-13 13:53:43 -0600

hafizas101 gravatar image

updated 2019-09-14 05:20:52 -0600

gvdhoorn gravatar image

Straight dump of the error message:

<< hrwros_gazebo:make /home/arslan/hrwros_ws/logs/hrwros_gazebo/build.make.003.log
In file included from /home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:40:0:

/home/arslan/hrwros_ws/src/hrwros_gazebo/include/hrwros_gazebo/plugins/ARIAC.hh:280:13: error: ‘math’ does not name a type; did you mean ‘tanh’?
     public: math::Pose pose;
             ^~~~
             tanh

/home/arslan/hrwros_ws/src/hrwros_gazebo/include/hrwros_gazebo/plugins/ARIAC.hh: In function ‘std::ostream& ariac::operator<<(std::ostream&, const ariac::KitObject&)’:
/home/arslan/hrwros_ws/src/hrwros_gazebo/include/hrwros_gazebo/plugins/ARIAC.hh:268:33: error: ‘const class ariac::KitObject’ has no member named ‘pose’
       _out << "Pose: [" << _obj.pose << "]" << std::endl;
                                 ^~~~
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc: At global scope:
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:81:23: error: ‘math’ does not name a type; did you mean ‘tanh’?
               public: math::Box dropRegion;
                       ^~~~
                       tanh
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:84:23: error: ‘math’ does not name a type; did you mean ‘tanh’?
               public: math::Pose destination;
                       ^~~~
                       tanh

/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc: In member function ‘bool gazebo::VacuumGripperPluginPrivate::DropObject::operator==(const gazebo::VacuumGripperPluginPrivate::DropObject&) const’:
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:60:25: error: ‘const class gazebo::VacuumGripperPluginPrivate::DropObject’ has no member named ‘dropRegion’
                   this->dropRegion == _obj.dropRegion && \
                         ^~~~~~~~~~
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:60:44: error: ‘const class gazebo::VacuumGripperPluginPrivate::DropObject’ has no member named ‘dropRegion’
                   this->dropRegion == _obj.dropRegion && \
                                            ^~~~~~~~~~
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:61:25: error: ‘const class gazebo::VacuumGripperPluginPrivate::DropObject’ has no member named ‘destination’
                   this->destination == _obj.destination;
                         ^~~~~~~~~~~
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:61:45: error: ‘const class gazebo::VacuumGripperPluginPrivate::DropObject’ has no member named ‘destination’
                   this->destination == _obj.destination;
                                             ^~~~~~~~~~~

/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc: In function ‘std::ostream& gazebo::operator<<(std::ostream&, const gazebo::VacuumGripperPluginPrivate::DropObject&)’:
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:72:30: error: ‘const class gazebo::VacuumGripperPluginPrivate::DropObject’ has no member named ‘dropRegion’
                 _out << _obj.dropRegion << std::endl;
                              ^~~~~~~~~~
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:73:44: error: ‘const class gazebo::VacuumGripperPluginPrivate::DropObject’ has no member named ‘destination’
                 _out << "  Dst: [" << _obj.destination << "]" << std::endl;
                                            ^~~~~~~~~~~
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc: In destructor ‘virtual gazebo::VacuumGripperPlugin::~VacuumGripperPlugin()’:
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:199:53: error: ‘class gazebo::physics::World’ has no member named ‘GetRunning’; did you mean ‘Running’?
   if (this->dataPtr->world && this->dataPtr->world->GetRunning())
                                                     ^~~~~~~~~~
                                                     Running
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:201:38: error: ‘class gazebo::physics::World’ has no member named ‘GetPhysicsEngine’; did you mean ‘SetPhysicsEnabled’?
     auto mgr = this->dataPtr->world->GetPhysicsEngine()->GetContactManager();
                                      ^~~~~~~~~~~~~~~~
                                      SetPhysicsEnabled
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc: In member function ‘virtual void gazebo::VacuumGripperPlugin::Load(gazebo::physics::ModelPtr, sdf::ElementPtr)’:
/home/arslan/hrwros_ws/src/hrwros_gazebo/src/plugins/VacuumGripperPlugin.cc:213:51: error: ‘class gazebo::physics::World’ has ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2019-09-14 05:24:19 -0600

gvdhoorn gravatar image

If hrwros_gazebo is one of the packages from the edX MOOC "Hello (Real) World with ROS", then unfortunately you cannot build those right now on Melodic.

The MOOC uses a special deployment image with Kinetic and Gazebo 7 for exactly this reason: the plugins and packages used have a hard dependency on Gazebo 7, and they must be updated to build with Gazebo 9.

Perhaps there are other users on the forum of the MOOC that have figured this out, but at this time the advice would be to either use the Singulary image that is provided by the MOOC, or install Kinetic.

edit flag offensive delete link more

Comments

Yes you are right about the package. I have heard that the same course will start again on 15th January, 2020. I request you to update your future course so that melodic users can also benefit from your course. Thanks for your response. I helped.

hafizas101 gravatar imagehafizas101 ( 2019-09-16 05:26:43 -0600 )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: 2019-09-13 13:53:43 -0600

Seen: 24 times

Last updated: Sep 14