Gazebo | Ignition | Community
Ask Your Question
0

Problems with catkin_make after installing from source

asked 2017-12-07 05:19:36 -0600

Fiddle gravatar image

Hi, I've been trying to fix errors that occur when using the gym_gazebo package, and the solution to one of my problems was to uninstall gazebo and install it from source, and I followed the instructions that are contained here, however now when I try to run catkin_make, i get the following message. Did I make a mistake during the installation?

[  3%] Building CXX object gazebo_ros_pkgs/gazebo_plugins/CMakeFiles/gazebo_ros_projector.dir/src/gazebo_ros_projector.cpp.o
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp: In destructor ‘virtual gazebo::GazeboRosVacuumGripper::~GazeboRosVacuumGripper()’:
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:47:3: error: ‘DisconnectWorldUpdateBegin’ is not a member of ‘gazebo::event::Events’
   event::Events::DisconnectWorldUpdateBegin(update_connection_);
   ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp: In member function ‘virtual void gazebo::GazeboRosVacuumGripper::UpdateChild()’:
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:182:3: error: ‘math’ has not been declared
   math::Pose parent_pose = link_->GetWorldPose();
   ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:183:37: error: ‘class gazebo::physics::World’ has no member named ‘GetModels’
   physics::Model_V models = world_->GetModels();
                                     ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:192:7: error: ‘math’ has not been declared
       math::Pose link_pose = links[j]->GetWorldPose();
       ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:193:7: error: ‘math’ has not been declared
       math::Pose diff = parent_pose - link_pose;
       ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:194:21: error: ‘diff’ was not declared in this scope
       double norm = diff.pos.GetLength();
                     ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:196:41: error: ‘class gazebo::physics::Link’ has no member named ‘GetWorldLinearAccel’
         links[j]->SetLinearAccel(link_->GetWorldLinearAccel());
                                         ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:197:42: error: ‘class gazebo::physics::Link’ has no member named ‘GetWorldAngularAccel’
         links[j]->SetAngularAccel(link_->GetWorldAngularAccel());
                                          ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:198:39: error: ‘class gazebo::physics::Link’ has no member named ‘GetWorldLinearVel’
         links[j]->SetLinearVel(link_->GetWorldLinearVel());
                                       ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:199:40: error: ‘class gazebo::physics::Link’ has no member named ‘GetWorldAngularVel’
         links[j]->SetAngularVel(link_->GetWorldAngularVel());
                                        ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:204:11: error: ‘link_pose’ was not declared in this scope
           link_pose.Set(parent_pose.pos, link_pose.rot);
           ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:204:25: error: ‘parent_pose’ was not declared in this scope
           link_pose.Set(parent_pose.pos, link_pose.rot);
                         ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:210:9: error: ‘math’ has not been declared
         math::Vector3 force = norm_force * diff.pos.Normalize();
         ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_vacuum_gripper.cpp:211:28: error: ‘force’ was not declared in this scope
         links[j]->AddForce(force);
                            ^
In file included from /home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_planar_move.cpp:25:0:
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/include/gazebo_plugins/gazebo_ros_planar_move.h:93:7: error: ‘math’ does not name a type
       math::Pose last_odom_pose_;
       ^
/home/username/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_planar_move.cpp: In member function ‘virtual ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-12-07 11:35:15 -0600

chapulina gravatar image

updated 2017-12-09 12:42:19 -0600

You should build a branch of Gazebo which is compatible with your Gazebo ROS pkgs and related packages. It looks like the ROS stuff you're building expects an older Gazebo version, probably Gazebo 7, but you've built a newer version, probably 8 or default (9).

edit flag offensive delete link more

Comments

Thanks, that was the case!

Fiddle gravatar imageFiddle ( 2017-12-08 09:06:38 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-12-07 05:19:36 -0600

Seen: 2,134 times

Last updated: Dec 09 '17