Coder Social home page Coder Social logo

rafalamao / hector-quadrotor-noetic Goto Github PK

View Code? Open in Web Editor NEW
56.0 2.0 36.0 7.34 MB

Hector Quadrotor ported to ROS Noetic with Gazebo 11

CMake 8.32% Python 2.71% C++ 87.59% C 0.38% MATLAB 1.00%
hector-quadrotor hector quadrotor drone ros ros-noetic gazebo-11 noetic ubuntu2004 ubuntu

hector-quadrotor-noetic's Introduction

Hi there! my name is Aarón (RAFALAMAO)

I’m a mechatronic engineer from UPIITA, Mexico. I love development, music and graphic design.

I started with C / C ++, then Matlab, LabView, Python, JavaScript and Typescript. Currently I am programming mainly in NextJs (front) and NestJS (back) technologies.

Check me out on my portfolio, blog or take a look on my guitar tabs on Ultimate Guitar profile or tabs.

Also reach me via:

Portfolio YouTube Linkedin My Blog UG

hector-quadrotor-noetic's People

Contributors

rafalamao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hector-quadrotor-noetic's Issues

How to restart motor after flipping over

Hi, I am doing a reinforcement-leaning-based obstacle avoidance simulation with your quadrotor model. But I encountered a problem once the UAV flippered over due to impact, the motor just shut down. I tried to reset the position of the UAV and set a Z linear velocity to the UAV. But the UAV still kept still. This problem can only be solved by relaunching the file and rerunning the program. Can I ask if is there any programming-based method to solve this issue?

Thanks in advance!

Undefined Tag in kinect_camera.urdf.xacro

Recently, I have been doing research with the spawn_quadrotor_with_kinect.launch file, which has something to do with the kinect_camera.urdf.xacro file. However, when I tried to start the launch in Gazebo, some errors occurred:

RLException: while processing /home/zyh/catkin_ws/src/Hector/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_gazebo/launch/spawn_quadrotor_with_kinect.launch:
while processing /home/zyh/catkin_ws/src/Hector/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_gazebo/launch/spawn_quadrotor.launch:
Invalid tag: Cannot load command parameter [robot_description]: command [['/opt/ros/noetic/lib/xacro/xacro', '/home/zyh/catkin_ws/src/Hector/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_description/urdf/quadrotor_with_kinect.gazebo.xacro', 'base_link_frame:=/base_link', 'world_frame:=world']] returned with code [2].
Param xml is <param name="robot_description" command="$(find xacro)/xacro '$(arg model)' base_link_frame:=$(arg base_link_frame) world_frame:=$(arg world_frame)"/
The traceback for the exception was written to the log file

And I found that this error is caused by the <xacro:inertial_sphere mass="0.01" diameter="0.07" /> in kinect_camera.urdf.xacro file, line 17.

Personally, I supposed that this is because inertial_sphere tag is not pre-defined in the kinect_camera.urdf.xacro, which leads to the error. Therefore, I tried to define a inertial_sphere.urdf.xacro file first and include it later in the kinect_camera.urdf.xacro file to solve this problem. Here is the content:

<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
  <xacro:macro name="inertial_sphere" params="mass diameter">
    <inertial>
      <mass value="${mass}"/>
      <inertia ixx="${(2/5)*mass*pow((diameter/2),2)}" ixy="${(2/5)*mass*pow((diameter/2),2)}" ixz = "${(2/5)*mass*pow((diameter/2),2)}" iyy="${(2/5)*mass*pow((diameter/2),2)}" iyz = "${(2/5)*mass*pow((diameter/2),2)}" izz="${(2/5)*mass*pow((diameter/2),2)}"/>
      <origin xyz="0 0 0" rpy="0 0 0" />
    </inertial>
    <visual>
      <geometry>
        <sphere radius="${diameter/2}"/>
      </geometry>
    </visual>
  </xacro:macro>
</robot>

I am writing to discuss with you whether this is a mistake caused by undefinition or my own problem. I hope to hear from you soon!

Best Regards :)

How to control the angular velocity of the UAV

I am trying to control the angular velocity of this hector quadrotor on Noetic and Ubuntu 20.04. However, when I am trying to publish cmd/vel with Twist msgs to control both the linear and angular velocity of the UAV, only the linear command works. Can you give me some clues about how to command the angular velocity? If does exist some methods, is the command relying on the reference frame or the body frame?

Thanks in advance!

ERROR: invalid command 'unique_id'

Hi, @RAFALAMAO, thanks for sharing your project here.

Building your project, the error occured. Test environment is on Ubuntu 20.04 (ROS noetic).

When I type that command

$ git clone https://github.com/ros-geographic-info/unique_identifier.git

Then, build,

--------------------------------------------------------
Profile:                     default
Extending:             [env] /opt/ros/noetic
Workspace:                   /home/scpark/cps_ws
--------------------------------------------------------
Build Space:        [exists] /home/scpark/cps_ws/build
Devel Space:        [exists] /home/scpark/cps_ws/devel
Install Space:      [unused] /home/scpark/cps_ws/install
Log Space:         [missing] /home/scpark/cps_ws/logs
Source Space:       [exists] /home/scpark/cps_ws/src
DESTDIR:            [unused] None
--------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------
Additional CMake Args:       None
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------
Buildlisted Packages:        None
Skiplisted Packages:         None
--------------------------------------------------------
Workspace configuration appears valid.

NOTE: Forcing CMake to run for each package.
--------------------------------------------------------
[build] Found 3 packages in 0.0 seconds.                                                                                                                                                                  
[build] Updating package table.                                                                                                                                                                           
Starting  >>> catkin_tools_prebuild                                                                                                                                                                       
Finished  <<< catkin_tools_prebuild                [ 1.0 seconds ]                                                                                                                                        
Starting  >>> uuid_msgs                                                                                                                                                                                   
Finished  <<< uuid_msgs                            [ 1.4 seconds ]                                                                                                                                        
Starting  >>> unique_id                                                                                                                                                                                   
__________________________________________________________________________________________________________________________________________________________________________________________________________
Errors     << unique_id:cmake /home/scpark/cps_ws/logs/unique_id/build.cmake.000.log                                                                                                                      
/opt/ros/noetic/lib/python3/dist-packages/_distutils_hack/__init__.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
  warnings.warn(
/opt/ros/noetic/lib/python3/dist-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

ERROR: invalid command 'unique_id'
CMake Error at /opt/ros/noetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):

  execute_process(/home/scpark/cps_ws/build/unique_id/catkin_generated/env_cached.sh
  "/usr/bin/python3"
  "/opt/ros/noetic/share/catkin/cmake/interrogate_setup_dot_py.py"
  "unique_id" "/home/scpark/cps_ws/src/unique_identifier/unique_id/setup.py"
  "/home/scpark/cps_ws/build/unique_id/catkin_generated/setup_py_interrogation.cmake")
  returned error code 1
Call Stack (most recent call first):
  /opt/ros/noetic/share/catkin/cmake/catkin_python_setup.cmake:46 (safe_execute_process)
  CMakeLists.txt:8 (catkin_python_setup)


cd /home/scpark/cps_ws/build/unique_id; catkin build --get-env unique_id | catkin env -si  /usr/bin/cmake /home/scpark/cps_ws/src/unique_identifier/unique_id --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/scpark/cps_ws/devel/.private/unique_id -DCMAKE_INSTALL_PREFIX=/home/scpark/cps_ws/install; cd -

..........................................................................................................................................................................................................
Failed     << unique_id:cmake                      [ Exited with code 1 ]                                                                                                                                 
Failed    <<< unique_id                            [ 1.1 seconds ]                                                                                                                                        
Abandoned <<< unique_identifier                    [ Unrelated job failed ]                                                                                                                               
[build] Summary: 2 of 4 packages succeeded.                                                                                                                                                               
[build]   Ignored:   None.                                                                                                                                                                                
[build]   Warnings:  None.                                                                                                                                                                                
[build]   Abandoned: 1 packages were abandoned.                                                                                                                                                           
[build]   Failed:    1 packages failed.                                                                                                                                                                   
[build] Runtime: 3.4 seconds total.                                                                                                                                                                       
[build] Note: Workspace packages have changed, please re-source setup files to use them.

I don't know how to fix it...

Error loading some assets

Hi,

I'm using this quadrotor model with the Neurorobotics Platform, which as far as I know is basically just ROS + spiking neural network librar(y/ies) + custom UI

I was given these instructions by the team and I was able to get through them. However, upon launching the simulation their platform gives me the error:

Error while loading some assets!

quadrotor::base_link::base_link_fixed_joint_lump__sonar_link_visual_1
quadrotor::base_link::base_link_visual

Some assets have not been found!

While I understand you may be unfamiliar with the NRP, would you happen to know what could cause this error?

Thanks!

Can hector_ui work for Ros Melodic (Ubuntu 18.04)

Hello and thanks for your work in this repository. I was wondering if hector_ui to control the drone can work on Ros Melodic, tried it but i got some errors.

  1. tkinter wasn't installed. I did install it but then
  2. I got this error
    Traceback (most recent call last):
    File "/home/anast/catkin_ws/src/hector_ui/src/ui_hector_quad.py", line 10, in
    import rospy
    File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/init.py", line 49, in
    from .client import spin, myargv, init_node,
    File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/client.py", line 52, in
    import roslib
    File "/opt/ros/melodic/lib/python2.7/dist-packages/roslib/init.py", line 50, in
    from roslib.launcher import load_manifest # noqa: F401
    File "/opt/ros/melodic/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in
    import rospkg
    ModuleNotFoundError: No module named 'rospkg'

How can I get Z axis on rviz?

I am trying to get z position of hector_quadrotor in simulation. I can get X and Y axis coordinates but I couldn't get Z coordinate. I tried to get it by using GPS but the values are not correct. So I want to get Z coordinate by using barometer or another sensor.

Here the a part of pose_estimation_node.cpp:

void PoseEstimationNode::gpsCallback(const sensor_msgs::NavSatFixConstPtr& gps, const
geometry_msgs::Vector3StampedConstPtr& gps_velocity) {
boost::shared_ptr m = boost::static_pointer_cast(pose_estimation_->getMeasurement("gps"));

if (gps->status.status == sensor_msgs::NavSatStatus::STATUS_NO_FIX) {
  if (m->getStatusFlags() > 0) m->reset(pose_estimation_->state());
  return;
}

GPS::Update update;
update.latitude = gps->latitude * M_PI/180.0;
update.longitude = gps->longitude * M_PI/180.0;
update.velocity_north =  gps_velocity->vector.x;
update.velocity_east  = -gps_velocity->vector.y;
m->add(update);

if (gps_pose_publisher_ || sensor_pose_publisher_) {
  geometry_msgs::PoseStamped gps_pose;
  pose_estimation_->getHeader(gps_pose.header);
  gps_pose.header.stamp = gps->header.stamp;
  GPSModel::MeasurementVector y = m->getVector(update, pose_estimation_->state());

  if (gps_pose_publisher_) {
    gps_pose.pose.position.x = y(0);
    gps_pose.pose.position.y = y(1);
    gps_pose.pose.position.z = gps->altitude - pose_estimation_->globalReference()- >position().altitude;
    double track = atan2(gps_velocity->vector.y, gps_velocity->vector.x);
    gps_pose.pose.orientation.w = cos(track/2);
    gps_pose.pose.orientation.z = sin(track/2);
    gps_pose_publisher_.publish(gps_pose);
  }

  sensor_pose_.pose.position.x = y(0);
  sensor_pose_.pose.position.y = y(1);
  """I add it here""" 
}

If I add -----> sensor_pose_.pose.position.z = gps->altitude,

I can get a Z coordinate on RVIZ simulation or gnome-terminal. But as I said, the values are very meanless (negative values).

Also ------> gps_pose.pose.position.z = gps->altitude - pose_estimation_->globalReference()- >position().altitude;

It is not working because position().altitude return NAN. There are another measurement method in pose_estimation_node.cpp like barometer. How can I use barometer value.

Here the another part of pose_estimation_node.cpp:

#if defined(USE_HECTOR_UAV_MSGS)
void PoseEstimationNode::baroCallback(const hector_uav_msgs::AltimeterConstPtr& 
altimeter) {
  boost::shared_ptr<Baro> m = boost::static_pointer_cast<Baro>(pose_estimation_->getMeasurement("baro"));
  m->add(Baro::Update(altimeter->pressure, altimeter->qnh));
}

#else
void PoseEstimationNode::heightCallback(const geometry_msgs::PointStampedConstPtr& 
height) {
boost::shared_ptr<Height> m = boost::static_pointer_cast<Height>(pose_estimation_->getMeasurement("height"));

Height::MeasurementVector update;
update(0) = height->point.z;
m->add(Height::Update(update));

if (sensor_pose_publisher_) {
sensor_pose_.pose.position.z = height->point.z - m->getElevation();
  }
}
#endif

void PoseEstimationNode::magneticCallback(const geometry_msgs::Vector3StampedConstPtr& magnetic) {
boost::shared_ptr<Magnetic> m = boost::static_pointer_cast<Magnetic>(pose_estimation_->getMeasurement("magnetic"));

Magnetic::MeasurementVector update;
update.x() = magnetic->vector.x;
update.y() = magnetic->vector.y;
update.z() = magnetic->vector.z;
m->add(Magnetic::Update(update));

if (sensor_pose_publisher_) {
sensor_pose_yaw_ = -(m->getModel()->getTrueHeading(pose_estimation_->state(), update) - pose_estimation_->globalReference()->heading());
}
}

Error in building

i got these errors while building my workspace

 /usr/include/gazebo-11/gazebo/msgs/world_control.pb.h: In member function ‘virtual gazebo::msgs::WorldControl* gazebo::msgs::WorldControl::New(google::protobuf::Arena*) const’:
/usr/include/gazebo-11/gazebo/msgs/world_control.pb.h:130:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  130 |     return CreateMaybeMessage<WorldControl>(arena);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_control.pb.h:130:43: error: expected primary-expression before ‘>’ token
  130 |     return CreateMaybeMessage<WorldControl>(arena);
      |                                           ^
/usr/include/gazebo-11/gazebo/msgs/world_control.pb.h: In member function ‘virtual int gazebo::msgs::WorldControl::GetCachedSize() const’:
/usr/include/gazebo-11/gazebo/msgs/world_control.pb.h:146:44: error: ‘_cached_size_’ was not declared in this scope
  146 |   int GetCachedSize() const final { return _cached_size_.Get(); }
      |                                            ^~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_control.pb.h: In member function ‘gazebo::msgs::WorldReset* gazebo::msgs::WorldControl::mutable_reset()’:
/usr/include/gazebo-11/gazebo/msgs/world_control.pb.h:343:15: error: ‘CreateMaybeMessage’ was not declared in this scope
  343 |     auto* p = CreateMaybeMessage<::gazebo::msgs::WorldReset>(GetArenaNoVirtual());
      |               ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_control.pb.h:343:60: error: expected primary-expression before ‘>’ token
  343 |     auto* p = CreateMaybeMessage<::gazebo::msgs::WorldReset>(GetArenaNoVirtual());
      |                                                            ^
/usr/include/gazebo-11/gazebo/msgs/world_control.pb.h: In member function ‘void gazebo::msgs::WorldControl::set_allocated_reset(gazebo::msgs::WorldReset*)’:
/usr/include/gazebo-11/gazebo/msgs/world_control.pb.h:357:45: error: ‘GetOwnedMessage’ is not a member of ‘google::protobuf::internal’
  357 |       reset = ::google::protobuf::internal::GetOwnedMessage(
      |                                             ^~~~~~~~~~~~~~~
In file included from /usr/include/gazebo-11/gazebo/msgs/MessageTypes.hh:123,
                 from /usr/include/gazebo-11/gazebo/msgs/msgs.hh:35,
                 from /usr/include/gazebo-11/gazebo/physics/Entity.hh:28,
                 from /usr/include/gazebo-11/gazebo/physics/Model.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/Actor.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
                 from /opt/ros/noetic/include/gazebo_ros_control/robot_hw_sim.h:45,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/include/hector_quadrotor_controller/quadrotor_hardware_gazebo.h:32,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/src/quadrotor_hardware_gazebo.cpp:29:
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h: At global scope:
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:335:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘ToCachedSize’?
  335 |   mutable ::google::protobuf::internal::CachedSize _cached_size_;
      |                                         ^~~~~~~~~~
      |                                         ToCachedSize
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h: In member function ‘virtual gazebo::msgs::UserCmd* gazebo::msgs::UserCmd::New() const’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:151:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  151 |     return CreateMaybeMessage<UserCmd>(NULL);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:151:38: error: expected primary-expression before ‘>’ token
  151 |     return CreateMaybeMessage<UserCmd>(NULL);
      |                                      ^
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h: In member function ‘virtual gazebo::msgs::UserCmd* gazebo::msgs::UserCmd::New(google::protobuf::Arena*) const’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:155:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  155 |     return CreateMaybeMessage<UserCmd>(arena);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:155:38: error: expected primary-expression before ‘>’ token
  155 |     return CreateMaybeMessage<UserCmd>(arena);
      |                                      ^
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h: In member function ‘virtual int gazebo::msgs::UserCmd::GetCachedSize() const’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:171:44: error: ‘_cached_size_’ was not declared in this scope
  171 |   int GetCachedSize() const final { return _cached_size_.Get(); }
      |                                            ^~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h: In member function ‘std::string* gazebo::msgs::UserCmd::release_description()’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:435:23: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘ReleaseNonDefaultNoArena’; did you mean ‘ClearToDefaultNoArena’?
  435 |   return description_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
      |                       ClearToDefaultNoArena
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h: In member function ‘std::string* gazebo::msgs::UserCmd::release_entity_name()’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:580:23: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘ReleaseNonDefaultNoArena’; did you mean ‘ClearToDefaultNoArena’?
  580 |   return entity_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
      |                       ClearToDefaultNoArena
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h: In member function ‘gazebo::msgs::WorldControl* gazebo::msgs::UserCmd::mutable_world_control()’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:621:15: error: ‘CreateMaybeMessage’ was not declared in this scope
  621 |     auto* p = CreateMaybeMessage<::gazebo::msgs::WorldControl>(GetArenaNoVirtual());
      |               ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:621:62: error: expected primary-expression before ‘>’ token
  621 |     auto* p = CreateMaybeMessage<::gazebo::msgs::WorldControl>(GetArenaNoVirtual());
      |                                                              ^
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h: In member function ‘void gazebo::msgs::UserCmd::set_allocated_world_control(gazebo::msgs::WorldControl*)’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:635:53: error: ‘GetOwnedMessage’ is not a member of ‘google::protobuf::internal’
  635 |       world_control = ::google::protobuf::internal::GetOwnedMessage(
      |                                                     ^~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h: In member function ‘gazebo::msgs::Wrench* gazebo::msgs::UserCmd::mutable_wrench()’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:675:15: error: ‘CreateMaybeMessage’ was not declared in this scope
  675 |     auto* p = CreateMaybeMessage<::gazebo::msgs::Wrench>(GetArenaNoVirtual());
      |               ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:675:56: error: expected primary-expression before ‘>’ token
  675 |     auto* p = CreateMaybeMessage<::gazebo::msgs::Wrench>(GetArenaNoVirtual());
      |                                                        ^
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h: In member function ‘void gazebo::msgs::UserCmd::set_allocated_wrench(gazebo::msgs::Wrench*)’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd.pb.h:689:46: error: ‘GetOwnedMessage’ is not a member of ‘google::protobuf::internal’
  689 |       wrench = ::google::protobuf::internal::GetOwnedMessage(
      |                                              ^~~~~~~~~~~~~~~
In file included from /usr/include/gazebo-11/gazebo/msgs/MessageTypes.hh:124,
                 from /usr/include/gazebo-11/gazebo/msgs/msgs.hh:35,
                 from /usr/include/gazebo-11/gazebo/physics/Entity.hh:28,
                 from /usr/include/gazebo-11/gazebo/physics/Model.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/Actor.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
                 from /opt/ros/noetic/include/gazebo_ros_control/robot_hw_sim.h:45,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/include/hector_quadrotor_controller/quadrotor_hardware_gazebo.h:32,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/src/quadrotor_hardware_gazebo.cpp:29:
/usr/include/gazebo-11/gazebo/msgs/user_cmd_stats.pb.h: At global scope:
/usr/include/gazebo-11/gazebo/msgs/user_cmd_stats.pb.h:218:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘ToCachedSize’?
  218 |   mutable ::google::protobuf::internal::CachedSize _cached_size_;
      |                                         ^~~~~~~~~~
      |                                         ToCachedSize
/usr/include/gazebo-11/gazebo/msgs/user_cmd_stats.pb.h: In member function ‘virtual gazebo::msgs::UserCmdStats* gazebo::msgs::UserCmdStats::New() const’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd_stats.pb.h:126:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  126 |     return CreateMaybeMessage<UserCmdStats>(NULL);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/user_cmd_stats.pb.h:126:43: error: expected primary-expression before ‘>’ token
  126 |     return CreateMaybeMessage<UserCmdStats>(NULL);
      |                                           ^
/usr/include/gazebo-11/gazebo/msgs/user_cmd_stats.pb.h: In member function ‘virtual gazebo::msgs::UserCmdStats* gazebo::msgs::UserCmdStats::New(google::protobuf::Arena*) const’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd_stats.pb.h:130:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  130 |     return CreateMaybeMessage<UserCmdStats>(arena);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/user_cmd_stats.pb.h:130:43: error: expected primary-expression before ‘>’ token
  130 |     return CreateMaybeMessage<UserCmdStats>(arena);
      |                                           ^
/usr/include/gazebo-11/gazebo/msgs/user_cmd_stats.pb.h: In member function ‘virtual int gazebo::msgs::UserCmdStats::GetCachedSize() const’:
/usr/include/gazebo-11/gazebo/msgs/user_cmd_stats.pb.h:146:44: error: ‘_cached_size_’ was not declared in this scope
  146 |   int GetCachedSize() const final { return _cached_size_.Get(); }
      |                                            ^~~~~~~~~~~~~
In file included from /usr/include/gazebo-11/gazebo/msgs/MessageTypes.hh:128,
                 from /usr/include/gazebo-11/gazebo/msgs/msgs.hh:35,
                 from /usr/include/gazebo-11/gazebo/physics/Entity.hh:28,
                 from /usr/include/gazebo-11/gazebo/physics/Model.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/Actor.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
                 from /opt/ros/noetic/include/gazebo_ros_control/robot_hw_sim.h:45,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/include/hector_quadrotor_controller/quadrotor_hardware_gazebo.h:32,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/src/quadrotor_hardware_gazebo.cpp:29:
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h: At global scope:
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h:196:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘ToCachedSize’?
  196 |   mutable ::google::protobuf::internal::CachedSize _cached_size_;
      |                                         ^~~~~~~~~~
      |                                         ToCachedSize
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h: In member function ‘virtual gazebo::msgs::Wind* gazebo::msgs::Wind::New() const’:
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h:126:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  126 |     return CreateMaybeMessage<Wind>(NULL);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h:126:35: error: expected primary-expression before ‘>’ token
  126 |     return CreateMaybeMessage<Wind>(NULL);
      |                                   ^
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h: In member function ‘virtual gazebo::msgs::Wind* gazebo::msgs::Wind::New(google::protobuf::Arena*) const’:
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h:130:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  130 |     return CreateMaybeMessage<Wind>(arena);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h:130:35: error: expected primary-expression before ‘>’ token
  130 |     return CreateMaybeMessage<Wind>(arena);
      |                                   ^
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h: In member function ‘virtual int gazebo::msgs::Wind::GetCachedSize() const’:
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h:146:44: error: ‘_cached_size_’ was not declared in this scope
  146 |   int GetCachedSize() const final { return _cached_size_.Get(); }
      |                                            ^~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h: In member function ‘gazebo::msgs::Vector3d* gazebo::msgs::Wind::mutable_linear_velocity()’:
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h:241:15: error: ‘CreateMaybeMessage’ was not declared in this scope
  241 |     auto* p = CreateMaybeMessage<::gazebo::msgs::Vector3d>(GetArenaNoVirtual());
      |               ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h:241:58: error: expected primary-expression before ‘>’ token
  241 |     auto* p = CreateMaybeMessage<::gazebo::msgs::Vector3d>(GetArenaNoVirtual());
      |                                                          ^
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h: In member function ‘void gazebo::msgs::Wind::set_allocated_linear_velocity(gazebo::msgs::Vector3d*)’:
/usr/include/gazebo-11/gazebo/msgs/wind.pb.h:255:55: error: ‘GetOwnedMessage’ is not a member of ‘google::protobuf::internal’
  255 |       linear_velocity = ::google::protobuf::internal::GetOwnedMessage(
      |                                                       ^~~~~~~~~~~~~~~
In file included from /usr/include/gazebo-11/gazebo/msgs/MessageTypes.hh:129,
                 from /usr/include/gazebo-11/gazebo/msgs/msgs.hh:35,
                 from /usr/include/gazebo-11/gazebo/physics/Entity.hh:28,
                 from /usr/include/gazebo-11/gazebo/physics/Model.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/Actor.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
                 from /opt/ros/noetic/include/gazebo_ros_control/robot_hw_sim.h:45,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/include/hector_quadrotor_controller/quadrotor_hardware_gazebo.h:32,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/src/quadrotor_hardware_gazebo.cpp:29:
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h: At global scope:
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h:210:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘ToCachedSize’?
  210 |   mutable ::google::protobuf::internal::CachedSize _cached_size_;
      |                                         ^~~~~~~~~~
      |                                         ToCachedSize
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h: In member function ‘virtual gazebo::msgs::WirelessNode* gazebo::msgs::WirelessNode::New() const’:
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h:125:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  125 |     return CreateMaybeMessage<WirelessNode>(NULL);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h:125:43: error: expected primary-expression before ‘>’ token
  125 |     return CreateMaybeMessage<WirelessNode>(NULL);
      |                                           ^
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h: In member function ‘virtual gazebo::msgs::WirelessNode* gazebo::msgs::WirelessNode::New(google::protobuf::Arena*) const’:
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h:129:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  129 |     return CreateMaybeMessage<WirelessNode>(arena);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h:129:43: error: expected primary-expression before ‘>’ token
  129 |     return CreateMaybeMessage<WirelessNode>(arena);
      |                                           ^
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h: In member function ‘virtual int gazebo::msgs::WirelessNode::GetCachedSize() const’:
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h:145:44: error: ‘_cached_size_’ was not declared in this scope
  145 |   int GetCachedSize() const final { return _cached_size_.Get(); }
      |                                            ^~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h: In member function ‘std::string* gazebo::msgs::WirelessNode::release_essid()’:
/usr/include/gazebo-11/gazebo/msgs/wireless_node.pb.h:281:17: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘ReleaseNonDefaultNoArena’; did you mean ‘ClearToDefaultNoArena’?
  281 |   return essid_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
      |                 ClearToDefaultNoArena
In file included from /usr/include/gazebo-11/gazebo/msgs/MessageTypes.hh:130,
                 from /usr/include/gazebo-11/gazebo/msgs/msgs.hh:35,
                 from /usr/include/gazebo-11/gazebo/physics/Entity.hh:28,
                 from /usr/include/gazebo-11/gazebo/physics/Model.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/Actor.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
                 from /opt/ros/noetic/include/gazebo_ros_control/robot_hw_sim.h:45,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/include/hector_quadrotor_controller/quadrotor_hardware_gazebo.h:32,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/src/quadrotor_hardware_gazebo.cpp:29:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h: At global scope:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:185:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘ToCachedSize’?
  185 |   mutable ::google::protobuf::internal::CachedSize _cached_size_;
      |                                         ^~~~~~~~~~
      |                                         ToCachedSize
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h: In member function ‘virtual gazebo::msgs::WirelessNodes* gazebo::msgs::WirelessNodes::New() const’:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:126:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  126 |     return CreateMaybeMessage<WirelessNodes>(NULL);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:126:44: error: expected primary-expression before ‘>’ token
  126 |     return CreateMaybeMessage<WirelessNodes>(NULL);
      |                                            ^
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h: In member function ‘virtual gazebo::msgs::WirelessNodes* gazebo::msgs::WirelessNodes::New(google::protobuf::Arena*) const’:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:130:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  130 |     return CreateMaybeMessage<WirelessNodes>(arena);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:130:44: error: expected primary-expression before ‘>’ token
  130 |     return CreateMaybeMessage<WirelessNodes>(arena);
      |                                            ^
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h: In member function ‘virtual int gazebo::msgs::WirelessNodes::GetCachedSize() const’:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:146:44: error: ‘_cached_size_’ was not declared in this scope
  146 |   int GetCachedSize() const final { return _cached_size_.Get(); }
      |                                            ^~~~~~~~~~~~~
In file included from /usr/include/gazebo-11/gazebo/msgs/MessageTypes.hh:132,
                 from /usr/include/gazebo-11/gazebo/msgs/msgs.hh:35,
                 from /usr/include/gazebo-11/gazebo/physics/Entity.hh:28,
                 from /usr/include/gazebo-11/gazebo/physics/Model.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/Actor.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
                 from /opt/ros/noetic/include/gazebo_ros_control/robot_hw_sim.h:45,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/include/hector_quadrotor_controller/quadrotor_hardware_gazebo.h:32,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/src/quadrotor_hardware_gazebo.cpp:29:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: At global scope:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:233:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘ToCachedSize’?
  233 |   mutable ::google::protobuf::internal::CachedSize _cached_size_;
      |                                         ^~~~~~~~~~
      |                                         ToCachedSize
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘virtual gazebo::msgs::WorldModify* gazebo::msgs::WorldModify::New() const’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:125:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  125 |     return CreateMaybeMessage<WorldModify>(NULL);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:125:42: error: expected primary-expression before ‘>’ token
  125 |     return CreateMaybeMessage<WorldModify>(NULL);
      |                                          ^
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘virtual gazebo::msgs::WorldModify* gazebo::msgs::WorldModify::New(google::protobuf::Arena*) const’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:129:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  129 |     return CreateMaybeMessage<WorldModify>(arena);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:129:42: error: expected primary-expression before ‘>’ token
  129 |     return CreateMaybeMessage<WorldModify>(arena);
      |                                          ^
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘virtual int gazebo::msgs::WorldModify::GetCachedSize() const’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:145:44: error: ‘_cached_size_’ was not declared in this scope
  145 |   int GetCachedSize() const final { return _cached_size_.Get(); }
      |                                            ^~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘std::string* gazebo::msgs::WorldModify::release_world_name()’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:306:22: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘ReleaseNonDefaultNoArena’; did you mean ‘ClearToDefaultNoArena’?
  306 |   return world_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~
      |                      ClearToDefaultNoArena
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘std::string* gazebo::msgs::WorldModify::release_cloned_uri()’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:444:22: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘ReleaseNonDefaultNoArena’; did you mean ‘ClearToDefaultNoArena’?
  444 |   return cloned_uri_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~
      |                      ClearToDefaultNoArena
In file included from /usr/include/gazebo-11/gazebo/msgs/MessageTypes.hh:136,
                 from /usr/include/gazebo-11/gazebo/msgs/msgs.hh:35,
                 from /usr/include/gazebo-11/gazebo/physics/Entity.hh:28,
                 from /usr/include/gazebo-11/gazebo/physics/Model.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/Actor.hh:30,
                 from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
                 from /opt/ros/noetic/include/gazebo_ros_control/robot_hw_sim.h:45,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/include/hector_quadrotor_controller/quadrotor_hardware_gazebo.h:32,
                 from /home/asimov-hawks/pandion_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_controller_gazebo/src/quadrotor_hardware_gazebo.cpp:29:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h: At global scope:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:205:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘ToCachedSize’?
  205 |   mutable ::google::protobuf::internal::CachedSize _cached_size_;
      |                                         ^~~~~~~~~~
      |                                         ToCachedSize
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h: In member function ‘virtual gazebo::msgs::WrenchStamped* gazebo::msgs::WrenchStamped::New() const’:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:127:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  127 |     return CreateMaybeMessage<WrenchStamped>(NULL);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:127:44: error: expected primary-expression before ‘>’ token
  127 |     return CreateMaybeMessage<WrenchStamped>(NULL);
      |                                            ^
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h: In member function ‘virtual gazebo::msgs::WrenchStamped* gazebo::msgs::WrenchStamped::New(google::protobuf::Arena*) const’:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:131:12: error: ‘CreateMaybeMessage’ was not declared in this scope
  131 |     return CreateMaybeMessage<WrenchStamped>(arena);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:131:44: error: expected primary-expression before ‘>’ token
  131 |     return CreateMaybeMessage<WrenchStamped>(arena);
      |                                            ^
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h: In member function ‘virtual int gazebo::msgs::WrenchStamped::GetCachedSize() const’:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:147:44: error: ‘_cached_size_’ was not declared in this scope
  147 |   int GetCachedSize() const final { return _cached_size_.Get(); }
      |                                            ^~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h: In member function ‘gazebo::msgs::Time* gazebo::msgs::WrenchStamped::mutable_time()’:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:250:15: error: ‘CreateMaybeMessage’ was not declared in this scope
  250 |     auto* p = CreateMaybeMessage<::gazebo::msgs::Time>(GetArenaNoVirtual());
      |               ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:250:54: error: expected primary-expression before ‘>’ token
  250 |     auto* p = CreateMaybeMessage<::gazebo::msgs::Time>(GetArenaNoVirtual());
      |                                                      ^
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h: In member function ‘void gazebo::msgs::WrenchStamped::set_allocated_time(gazebo::msgs::Time*)’:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:264:44: error: ‘GetOwnedMessage’ is not a member of ‘google::protobuf::internal’
  264 |       time = ::google::protobuf::internal::GetOwnedMessage(
      |                                            ^~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h: In member function ‘gazebo::msgs::Wrench* gazebo::msgs::WrenchStamped::mutable_wrench()’:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:304:15: error: ‘CreateMaybeMessage’ was not declared in this scope
  304 |     auto* p = CreateMaybeMessage<::gazebo::msgs::Wrench>(GetArenaNoVirtual());
      |               ^~~~~~~~~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:304:56: error: expected primary-expression before ‘>’ token
  304 |     auto* p = CreateMaybeMessage<::gazebo::msgs::Wrench>(GetArenaNoVirtual());
      |                                                        ^
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h: In member function ‘void gazebo::msgs::WrenchStamped::set_allocated_wrench(gazebo::msgs::Wrench*)’:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:318:46: error: ‘GetOwnedMessage’ is not a member of ‘google::protobuf::internal’
  318 |       wrench = ::google::protobuf::internal::GetOwnedMessage(
      |                                              ^~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/hector_quadrotor_controller_gazebo.dir/build.make:76: CMakeFiles/hector_quadrotor_controller_gazebo.dir/src/quadrotor_hardware_gazebo.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2239: CMakeFiles/hector_quadrotor_controller_gazebo.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

IT SAYS THAT hector_quadrotor_controller_gazebo, hector_gazebo_plugins and some other packages failed to build

Protocol Buffer Error in Arch Linux

On building the hector drone package, I am encountering the following Protobuf error:

error.txt
image

I encountered the same error in multiple other projects, like this issue in PXLRoboticsLab's ardrone repo.

Kindly help me solve this version issue.

Some outputs that might be helpful:

  1. protoc --version results in version libprotoc 3.20.1
  2. which protoc results in location /usr/bin/protoc
  3. /usr/bin/protoc --version results in version libprotoc 3.20.1

Roslaunch is not working

I had a problem when I run roslaunch, so I have changed command in the tag to default, this solved the problem. Then, I tried changing to default to textfile However, I encounter another problem which says that it can not find the file and also give me traceback for files in the opt/ros/noetic/lib/python3/dist-packages/ (some python files). Do you know what is the problem?

The first error before changing the command:
redefining global symbol: pi
when processing file: /home/parallels/catkin_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_description/urdf/quadrotor_base.urdf.xacro
included from: /home/parallels/catkin_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_description/urdf/quadrotor.urdf.xacro
included from: /home/parallels/catkin_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_description/urdf/quadrotor.gazebo.xacro
No such file or directory: /home/parallels/catkin_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_gazebo/urdf/quadrotor_plugins.gazebo.xacro [Errno 2] No such file or directory: '/home/parallels/catkin_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_gazebo/urdf/quadrotor_plugins.gazebo.xacro'
when processing file: /home/parallels/catkin_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_description/urdf/quadrotor.gazebo.xacro
RLException: while processing /home/parallels/catkin_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_gazebo/launch/spawn_quadrotor.launch:
Invalid tag: Cannot load command parameter [robot_description]: command [['/opt/ros/noetic/lib/xacro/xacro', '/home/parallels/catkin_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_description/urdf/quadrotor.gazebo.xacro', 'base_link_frame:=/base_link', 'world_frame:=world']] returned with code [2].

Param xml is
The traceback for the exception was written to the log file

The error after changing command to default:

.. logging to /home/parallels/.ros/log/414eeecc-5620-11ec-9974-33e66f355017/roslaunch-ubuntu-linux-20-04-desktop-78810.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

RLException: while processing /home/parallels/catkin_ws/src/hector_quadrotor_noetic/hector_quadrotor/hector_quadrotor_gazebo/launch/spawn_quadrotor.launch:

tag must have one and only one of value/textfile/binfile. The traceback for the exception was written to the log file

hector_quadrotor hovering while using teleop_twist_keyboard

How did you get hector_quadrotor to hover while using teleop_twist_keyboard? As in what code did you have to change to allow this, because in the melodic version when you use teleop_twist_keyboard and hit 't' to gain altitude, once you let go, it comes back down to the ground. I understand this is because there are no commands being sent to keep it at that level, so I was wondering what code do I need to change in the melodic version to enable this. @RAFALAMAO

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.