Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protobuf version #191

Closed
psychedelic-coder opened this issue Apr 10, 2023 · 4 comments
Closed

protobuf version #191

psychedelic-coder opened this issue Apr 10, 2023 · 4 comments

Comments

@psychedelic-coder
Copy link

Hi, in foxy version, I have tried 3.17.3 and 3.15.8 but both versions can't work and generated errors as below. I wonder I have used wrong version, what's the version suit for foxy version?
And the errors are as below:
from /home/liuchen/ROS/ros2_ws/src/gazebo_ros2_control/gazebo_ros2_control/src/gazebo_ros2_control_plugin.cpp:42:
/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 internal_metadata;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| InternalMetadata
/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

@bmagyar
Copy link
Member

bmagyar commented Apr 10, 2023

Can you please give us a simple example to reproduce the issue? You can try with ros2_control_demos so simplify things

@psychedelic-coder
Copy link
Author

Can you please give us a simple example to reproduce the issue? You can try with ros2_control_demos so simplify things

Sorry I didn't describe issue clearly. I just cd my_workspace and then colcon build and the output are as follows:
2023-04-11 10-01-29屏幕截图
I found that my gazebo version is gazebo11, maybe it can't work with foxy project?
Thanks a lot!

@psychedelic-coder
Copy link
Author

I have solved this issue by removing protobuf I installed mannually and then reinstall probuf:
sudo apt reinstall libprotobuf-dev

@bmagyar
Copy link
Member

bmagyar commented Apr 12, 2023

Happy you managed to figure it out!

Many thanks for submitting the solution to it, not many people do it and it's great for posterity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants