Closed chan-yuu closed 6 months ago
@chan-yuu
This project should be compiled on Ubuntu 20.04.
Thank you! There should be an issue with the version of protobuf. What is the version of protobuf? [ 81%] Built target gazebo_sfm_plugin_generate_messages In file included from /usr/include/gazebo-11/gazebo/physics/PhysicsTypes.hh:26, from /usr/include/gazebo-11/gazebo/common/Plugin.hh:41, from /home/cyun/planner_ws/src/ros_motion_planning/src/third_party/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:30, from /home/cyun/planner_ws/src/ros_motion_planning/src/third_party/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21: /usr/include/gazebo-11/gazebo/msgs/poses_stamped.pb.h:17:2: error: #error This file was generated by an older version of protoc which is 17 | #error This file was generated by an older version of protoc which is | ^~~~~ /usr/include/gazebo-11/gazebo/msgs/poses_stamped.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please 18 | #error incompatible with your Protocol Buffer headers. Please | ^~~~~ /usr/include/gazebo-11/gazebo/msgs/poses_stamped.pb.h:19:2: error: #error regenerate this file with a newer version of protoc. 19 | #error regenerate this file with a newer version of protoc. | ^~~~~
protoc'version = 3.6.1 Solved it
Hello,which version of gazebo should be used in this program? In my computer,the version of gazebo is follow:
(base) jc@jc-e52690v3:~/git_project/ros_motion_planning/scripts$ gazebo --version Gazebo multi-robot simulator, version 11.11.0 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org
Ubuntu 20.04.6+ROS noetic,the version of protobuf as follow: (base) jc@jc-e52690v3:~/git_project/ros_motion_planning/scripts$ pip install protobuf==3.6.1 Requirement already satisfied: protobuf==3.6.1 in /home/jc/anaconda3/lib/python3.8/site-packages (3.6.1) Requirement already satisfied: setuptools in /home/jc/anaconda3/lib/python3.8/site-packages (from protobuf==3.6.1) (69.5.1) Requirement already satisfied: six>=1.9 in /home/jc/anaconda3/lib/python3.8/site-packages (from protobuf==3.6.1) (1.16.0)
But when I run the build.sh in the ./script, I get a samlier error as follow:
289 | essid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), essid);
| ^~~~~~~
| SetAllocated
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h: At global scope:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:51:46: error: ‘FieldMetadata’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘AnyMetadata’?
51 | static const ::google::protobuf::internal::FieldMetadata field_metadata[];
| ^~~~~
| AnyMetadata
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:52:46: error: ‘SerializationTable’ in namespace ‘google::protobuf::internal’ does not name a type
52 | static const ::google::protobuf::internal::SerializationTable serialization_table[];
| ^~~~~~
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:183:33: error: ‘InternalMetadataWithArena’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘InternalMetadata’?
183 | ::google::protobuf::internal::InternalMetadataWithArena _internalmetadata;
| ^~~~~~~~~
| InternalMetadata
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:125:25: error: ‘gazebo::msgs::WirelessNodes gazebo::msgs::WirelessNodes::New() const’ marked ‘final’, but is not virtual
125 | inline WirelessNodes New() const final {
| ^~~
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:140:8: error: ‘bool gazebo::msgs::WirelessNodes::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream)’ marked ‘final’, but is not virtual
140 | bool MergePartialFromCodedStream(
| ^~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:142:8: error: ‘void gazebo::msgs::WirelessNodes::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream) const’ marked ‘final’, but is not virtual
142 | void SerializeWithCachedSizes(
| ^~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:144:30: error: ‘google::protobuf::uint8 gazebo::msgs::WirelessNodes::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’ marked ‘final’, but is not virtual
144 | ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray(
| ^~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h: In member function ‘const google::protobuf::UnknownFieldSet& gazebo::msgs::WirelessNodes::unknown_fields() const’:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:101:47: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::unknown_fields() const’
101 | return _internalmetadata.unknown_fields();
| ^
In file included from /home/jc/anaconda3/include/google/protobuf/message_lite.h:54,
from /home/jc/anaconda3/include/google/protobuf/generated_enum_util.h:38,
from /home/jc/anaconda3/include/google/protobuf/map.h:60,
from /usr/include/google/protobuf/generated_message_table_driven.h:34,
from /usr/include/gazebo-11/gazebo/msgs/poses_stamped.pb.h:25,
from /usr/include/gazebo-11/gazebo/physics/PhysicsTypes.hh:26,
from /usr/include/gazebo-11/gazebo/common/Plugin.hh:41,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:30,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:133:35: note: candidate: ‘template~~~~~
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:133:35: note: template argument deduction/substitution failed:
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:101:47: note: candidate expects 1 argument, 0 provided
101 | return _internalmetadata.unknown_fields();
| ^
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h: In member function ‘google::protobuf::UnknownFieldSet gazebo::msgs::WirelessNodes::mutable_unknown_fields()’:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:104:55: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::mutable_unknown_fields()’
104 | return _internalmetadata.mutable_unknown_fields();
| ^
In file included from /home/jc/anaconda3/include/google/protobuf/message_lite.h:54,
from /home/jc/anaconda3/include/google/protobuf/generated_enum_util.h:38,
from /home/jc/anaconda3/include/google/protobuf/map.h:60,
from /usr/include/google/protobuf/generated_message_table_driven.h:34,
from /usr/include/gazebo-11/gazebo/msgs/poses_stamped.pb.h:25,
from /usr/include/gazebo-11/gazebo/physics/PhysicsTypes.hh:26,
from /usr/include/gazebo-11/gazebo/common/Plugin.hh:41,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:30,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:143:29: note: candidate: ‘template~~~~~
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:143:29: note: template argument deduction/substitution failed:
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/wireless_nodes.pb.h:104:55: note: couldn’t deduce template parameter ‘T’
104 | return _internalmetadata.mutable_unknown_fields();
| ^
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: At global scope:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:50:46: error: ‘FieldMetadata’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘AnyMetadata’?
50 | static const ::google::protobuf::internal::FieldMetadata field_metadata[];
| ^~~~~
| AnyMetadata
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:51:46: error: ‘SerializationTable’ in namespace ‘google::protobuf::internal’ does not name a type
51 | static const ::google::protobuf::internal::SerializationTable serialization_table[];
| ^~~~~~
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:231:33: error: ‘InternalMetadataWithArena’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘InternalMetadata’?
231 | ::google::protobuf::internal::InternalMetadataWithArena _internalmetadata;
| ^~~~~~~~~
| InternalMetadata
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:124:23: error: ‘gazebo::msgs::WorldModify gazebo::msgs::WorldModify::New() const’ marked ‘final’, but is not virtual
124 | inline WorldModify New() const final {
| ^~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:139:8: error: ‘bool gazebo::msgs::WorldModify::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream)’ marked ‘final’, but is not virtual
139 | bool MergePartialFromCodedStream(
| ^~~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:141:8: error: ‘void gazebo::msgs::WorldModify::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream) const’ marked ‘final’, but is not virtual
141 | void SerializeWithCachedSizes(
| ^~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:143:30: error: ‘google::protobuf::uint8 gazebo::msgs::WorldModify::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’ marked ‘final’, but is not virtual
143 | ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray(
| ^~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘const google::protobuf::UnknownFieldSet& gazebo::msgs::WorldModify::unknown_fields() const’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:100:47: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::unknown_fields() const’
100 | return _internalmetadata.unknown_fields();
| ^
In file included from /home/jc/anaconda3/include/google/protobuf/message_lite.h:54,
from /home/jc/anaconda3/include/google/protobuf/generated_enum_util.h:38,
from /home/jc/anaconda3/include/google/protobuf/map.h:60,
from /usr/include/google/protobuf/generated_message_table_driven.h:34,
from /usr/include/gazebo-11/gazebo/msgs/poses_stamped.pb.h:25,
from /usr/include/gazebo-11/gazebo/physics/PhysicsTypes.hh:26,
from /usr/include/gazebo-11/gazebo/common/Plugin.hh:41,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:30,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:133:35: note: candidate: ‘template~~~~~
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:133:35: note: template argument deduction/substitution failed:
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:100:47: note: candidate expects 1 argument, 0 provided
100 | return _internalmetadata.unknown_fields();
| ^
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘google::protobuf::UnknownFieldSet gazebo::msgs::WorldModify::mutable_unknown_fields()’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:103:55: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::mutable_unknown_fields()’
103 | return _internalmetadata.mutable_unknown_fields();
| ^
In file included from /home/jc/anaconda3/include/google/protobuf/message_lite.h:54,
from /home/jc/anaconda3/include/google/protobuf/generated_enum_util.h:38,
from /home/jc/anaconda3/include/google/protobuf/map.h:60,
from /usr/include/google/protobuf/generated_message_table_driven.h:34,
from /usr/include/gazebo-11/gazebo/msgs/poses_stamped.pb.h:25,
from /usr/include/gazebo-11/gazebo/physics/PhysicsTypes.hh:26,
from /usr/include/gazebo-11/gazebo/common/Plugin.hh:41,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:30,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:143:29: note: candidate: ‘template~~~~~
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:143:29: note: template argument deduction/substitution failed:
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:103:55: note: couldn’t deduce template parameter ‘T’
103 | return _internalmetadata.mutable_unknown_fields();
| ^
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::clear_world_name()’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:263:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘ClearToEmptyNoArena’; did you mean ‘ClearToEmpty’?
263 | worldname.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
| ^~~~~~~
| ClearToEmpty
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘const string& gazebo::msgs::WorldModify::world_name() const’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:268:22: error: ‘const struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘GetNoArena’
268 | return worldname.GetNoArena();
| ^~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::set_world_name(const string&)’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:272:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘SetNoArena’
272 | worldname.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
| ^~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::set_world_name(std::string&&)’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:278:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘SetNoArena’
278 | worldname.SetNoArena(
| ^~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::set_world_name(const char)’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:286:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘SetNoArena’
286 | worldname.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
| ^~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::set_world_name(const char, size_t)’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:291:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘SetNoArena’
291 | worldname.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
| ^~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘std::string gazebo::msgs::WorldModify::mutable_world_name()’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:298:22: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘MutableNoArena’
298 | return worldname.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
| ^~~~~~
/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’
306 | return worldname.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
| ^~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::set_allocated_world_name(std::string)’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:314:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘SetAllocatedNoArena’; did you mean ‘SetAllocated’?
314 | worldname.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), world_name);
| ^~~~~~~
| SetAllocated
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::clear_cloned_uri()’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:401:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘ClearToEmptyNoArena’; did you mean ‘ClearToEmpty’?
401 | cloneduri.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
| ^~~~~~~
| ClearToEmpty
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘const string& gazebo::msgs::WorldModify::cloned_uri() const’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:406:22: error: ‘const struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘GetNoArena’
406 | return cloneduri.GetNoArena();
| ^~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::set_cloned_uri(const string&)’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:410:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘SetNoArena’
410 | cloneduri.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
| ^~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::set_cloned_uri(std::string&&)’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:416:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘SetNoArena’
416 | cloneduri.SetNoArena(
| ^~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::set_cloned_uri(const char)’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:424:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘SetNoArena’
424 | cloneduri.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
| ^~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::set_cloned_uri(const char, size_t)’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:429:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘SetNoArena’
429 | cloneduri.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
| ^~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘std::string gazebo::msgs::WorldModify::mutable_cloned_uri()’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:436:22: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘MutableNoArena’
436 | return cloneduri.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
| ^~~~~~
/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’
444 | return cloneduri.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
| ^~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h: In member function ‘void gazebo::msgs::WorldModify::set_allocated_cloned_uri(std::string)’:
/usr/include/gazebo-11/gazebo/msgs/world_modify.pb.h:452:15: error: ‘struct google::protobuf::internal::ArenaStringPtr’ has no member named ‘SetAllocatedNoArena’; did you mean ‘SetAllocated’?
452 | cloneduri.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cloned_uri);
| ^~~~~~~
| SetAllocated
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h: At global scope:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:52:46: error: ‘FieldMetadata’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘AnyMetadata’?
52 | static const ::google::protobuf::internal::FieldMetadata field_metadata[];
| ^~~~~
| AnyMetadata
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:53:46: error: ‘SerializationTable’ in namespace ‘google::protobuf::internal’ does not name a type
53 | static const ::google::protobuf::internal::SerializationTable serialization_table[];
| ^~~~~~
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:203:33: error: ‘InternalMetadataWithArena’ in namespace ‘google::protobuf::internal’ does not name a type; did you mean ‘InternalMetadata’?
203 | ::google::protobuf::internal::InternalMetadataWithArena _internalmetadata;
| ^~~~~~~~~
| InternalMetadata
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:126:25: error: ‘gazebo::msgs::WrenchStamped gazebo::msgs::WrenchStamped::New() const’ marked ‘final’, but is not virtual
126 | inline WrenchStamped New() const final {
| ^~~
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:141:8: error: ‘bool gazebo::msgs::WrenchStamped::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream)’ marked ‘final’, but is not virtual
141 | bool MergePartialFromCodedStream(
| ^~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:143:8: error: ‘void gazebo::msgs::WrenchStamped::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream) const’ marked ‘final’, but is not virtual
143 | void SerializeWithCachedSizes(
| ^~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:145:30: error: ‘google::protobuf::uint8 gazebo::msgs::WrenchStamped::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’ marked ‘final’, but is not virtual
145 | ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray(
| ^~~~~~~~~~~
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h: In member function ‘const google::protobuf::UnknownFieldSet& gazebo::msgs::WrenchStamped::unknown_fields() const’:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:102:47: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::unknown_fields() const’
102 | return _internalmetadata.unknown_fields();
| ^
In file included from /home/jc/anaconda3/include/google/protobuf/message_lite.h:54,
from /home/jc/anaconda3/include/google/protobuf/generated_enum_util.h:38,
from /home/jc/anaconda3/include/google/protobuf/map.h:60,
from /usr/include/google/protobuf/generated_message_table_driven.h:34,
from /usr/include/gazebo-11/gazebo/msgs/poses_stamped.pb.h:25,
from /usr/include/gazebo-11/gazebo/physics/PhysicsTypes.hh:26,
from /usr/include/gazebo-11/gazebo/common/Plugin.hh:41,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:30,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:133:35: note: candidate: ‘template~~~~~
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:133:35: note: template argument deduction/substitution failed:
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:102:47: note: candidate expects 1 argument, 0 provided
102 | return _internalmetadata.unknown_fields();
| ^
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h: In member function ‘google::protobuf::UnknownFieldSet gazebo::msgs::WrenchStamped::mutable_unknown_fields()’:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:105:55: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::mutable_unknown_fields()’
105 | return _internalmetadata.mutable_unknown_fields();
| ^
In file included from /home/jc/anaconda3/include/google/protobuf/message_lite.h:54,
from /home/jc/anaconda3/include/google/protobuf/generated_enum_util.h:38,
from /home/jc/anaconda3/include/google/protobuf/map.h:60,
from /usr/include/google/protobuf/generated_message_table_driven.h:34,
from /usr/include/gazebo-11/gazebo/msgs/poses_stamped.pb.h:25,
from /usr/include/gazebo-11/gazebo/physics/PhysicsTypes.hh:26,
from /usr/include/gazebo-11/gazebo/common/Plugin.hh:41,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:30,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:143:29: note: candidate: ‘template~~~~~
/home/jc/anaconda3/include/google/protobuf/metadata_lite.h:143:29: note: template argument deduction/substitution failed:
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:27,
from /usr/include/gazebo-11/gazebo/physics/physics.hh:2,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/include/pedestrian_sfm_plugin.h:31,
from /home/jc/git_project/ros_motion_planning/src/plugins/gazebo_plugins/pedestrian_sfm_plugin/src/pedestrian_sfm_plugin.cpp:21:
/usr/include/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:105:55: note: couldn’t deduce template parameter ‘T’
105 | return _internalmetadata.mutable_unknown_fields();
| ^
make[2]: [plugins/gazebo_plugins/pedestrian_sfm_plugin/CMakeFiles/PedestrianSFMPlugin.dir/build.make:63: plugins/gazebo_plugins/pedestrian_sfm_plugin/CMakeFiles/PedestrianSFMPlugin.dir/src/pedestrian_sfm_plugin.cpp.o] Error 1
make[1]: [CMakeFiles/Makefile2:5526: plugins/gazebo_plugins/pedestrian_sfm_plugin/CMakeFiles/PedestrianSFMPlugin.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j24 -l24" failed
@fjc7
It seemsto be a protobuf
issue rather than a gazebo issue, please check the version of protobuf
.
谢谢,重新安装了下ros,删除了build文件夹,取消conda虚拟环境,编译通过了
@fjc7 感谢你让我看到这个issue,实际上是conda环境的问题,解决方法如下:
(base) doongli@doongli-ROG-Strix-G733ZM-G733ZM:\~$ conda deactivate doongli@doongli-ROG-Strix-G733ZM-G733ZM:\~$ catkin_make
Failed << gazebo_sfm_plugin:make [ Exited with code 2 ] Failed <<< gazebo_sfm_plugin [ 13.3 seconds ]
Abandoned <<< gazebo_ped_visualizer_plugin [ Unrelated job failed ]
how to solve it?