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

Linker error librviz_carla_plugin.so: undefined symbol: fromMsg #711

Open
FelipeGdM opened this issue Dec 4, 2023 · 2 comments · May be fixed by #713
Open

Linker error librviz_carla_plugin.so: undefined symbol: fromMsg #711

FelipeGdM opened this issue Dec 4, 2023 · 2 comments · May be fixed by #713

Comments

@FelipeGdM
Copy link
Contributor

After compiling the code from master and running the command

rviz2 -d src/ros-bridge/carla_ad_demo/config/carla_ad_demo_ros2.rviz

The rviz2 windows briefly appears in the screen and then the error message is shown in terminal

rviz2: symbol lookup error: /home/felipe/Documents/Github/carla_ws/install/rviz_carla_plugin/lib/librviz_carla_plugin.so: undefined symbol: _ZN3tf27fromMsgERKN13geometry_msgs3msg11Quaternion_ISaIvEEERNS_10QuaternionE

I believe it is a problem related with the geometry2 library and not with carla ros bridge itself.

A temporary workaround is adding a bogus declaration of the function fromMsg

namespace tf2{
  void fromMsg(const geometry_msgs::msg::Quaternion & in, tf2::Quaternion & out){
    (void)(in);
    (void)(out);
  };
}

With this declaration, the plugin is loaded by rviz2 as intended

@junge1a520
Copy link

Please tell me where to add this code,thanks.

@FelipeGdM
Copy link
Contributor Author

@junge1a520 I suggest you to try the version in my PR, it uses a more effective solution #713

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

Successfully merging a pull request may close this issue.

2 participants