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

Error: no matching function for call to 'Get' #85

Open
TheConstructAi opened this issue Sep 20, 2022 · 6 comments
Open

Error: no matching function for call to 'Get' #85

TheConstructAi opened this issue Sep 20, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@TheConstructAi
Copy link

Bug report

Following the steps for compilation for the main branch, humble release, gives this error:

Finished <<< rmf_traffic_editor_test_maps [2min 23s]
--- stderr: rmf_building_sim_gz_classic_plugins
/home/user/rmf_ws/src/rmf/rmf_simulation/rmf_building_sim_gz_classic_plugins/src/door.cpp:36:22: error: no matching function for call to 'Get'
auto _ros_node = gazebo_ros::Node::Get(sdf, node_name);

Seems that the gazebo classic elements are not compatible with the ones installed for gazebo 11.

@TheConstructAi TheConstructAi added the bug Something isn't working label Sep 20, 2022
@TheConstructAi
Copy link
Author

Solved it by replacing the code:
_readonly_common->init(gazebo_ros::Node::Get(sdf, node_name));

By:

_readonly_common->init(gazebo_ros::Node::Get(sdf));

@luca-della-vedova
Copy link
Member

The change was introduced here as part of Humble compatibility.

Can I check with you what's your ROS version, and the version of ros-<distro>-gazebo-ros?

@TheConstructAi
Copy link
Author

TheConstructAi commented Oct 13, 2022

Hi, Sorry for the late response, last month we just pushed for a deadline and didn't see your message I'm afraid.

My version is Humble
user:~/ros2_ws/src$ ros2 pkg xml gazebo_ros | grep version
3.6.0

Just run it again in a fully Ubuntu 22, Humble stock system and same issue. I'll try to push this fix to our fork and do a push request,

@Th3G4mbl3r
Copy link

i am having the same issue. for me Ubuntu 20.04, ROS2 version is galactic. And the gazebo_ros package version is 3.5.2. And i am following the build from source instructions as listed here except for distro i am using galactic. When i try to do it with Humble, i get a different set of errors but i am suspecting that may be due to the fact that i am still on Ubuntu 20.04 and not 22 yet.

@Th3G4mbl3r
Copy link

Has the galactic branch been released? i saw in the migration thread a comment saying that the galactic branch has not yet been released.

@Yadunund
Copy link
Member

Yadunund commented Nov 4, 2022

As mentioned above, main only supports humble. There is a galactic-devel branch you can checkout for source builds with galactic. You should keep in mind that ROS 2 Galactic will be EOL by end of November so we do not plan to support any galactic releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants