Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

rework Eigen functions namespace hack - #367

Merged
tfoote merged 1 commit into
ros:melodic-develfrom
kejxu:add_tf2_namespace_to_avoid_name_collision
Feb 28, 2019
Merged

tfoote merged 1 commit into
ros:melodic-develfrom
kejxu:add_tf2_namespace_to_avoid_name_collision

Conversation

@kejxu

@kejxu kejxu commented Feb 21, 2019

Copy link
Copy Markdown
Contributor

without specifying the tf2 namespace, it would lead to build issue with MSVC, log from our daily build:

wrap_python_move_group.cpp
D:\a\1\a\_ws\src\moveit\moveit_ros\planning_interface\py_bindings_tools\include\moveit/py_bindings_tools/serialize_msg.h(69): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
D:\a\1\a\_ws\src\moveit\moveit_ros\planning_interface\move_group_interface\src\wrap_python_move_group.cpp(97): note: see reference to function template instantiation 'void moveit::py_bindings_tools::deserializeMsg<geometry_msgs::Pose>(const std::string &,T &)' being compiled
with
[
T=geometry_msgs::Pose
]
C:\opt\rosdeps\x64\include\boost-1_66\boost/bind/placeholders.hpp(54): note: see reference to class template instantiation 'boost::arg<9>' being compiled
C:\opt\rosdeps\x64\include\boost-1_66\boost/bind/placeholders.hpp(53): note: see reference to class template instantiation 'boost::arg<8>' being compiled
C:\opt\rosdeps\x64\include\boost-1_66\boost/bind/placeholders.hpp(52): note: see reference to class template instantiation 'boost::arg<7>' being compiled
C:\opt\rosdeps\x64\include\boost-1_66\boost/bind/placeholders.hpp(51): note: see reference to class template instantiation 'boost::arg<6>' being compiled
C:\opt\rosdeps\x64\include\boost-1_66\boost/bind/placeholders.hpp(50): note: see reference to class template instantiation 'boost::arg<5>' being compiled
C:\opt\rosdeps\x64\include\boost-1_66\boost/bind/placeholders.hpp(49): note: see reference to class template instantiation 'boost::arg<4>' being compiled
C:\opt\rosdeps\x64\include\boost-1_66\boost/bind/placeholders.hpp(48): note: see reference to class template instantiation 'boost::arg<3>' being compiled
C:\opt\rosdeps\x64\include\boost-1_66\boost/bind/placeholders.hpp(47): note: see reference to class template instantiation 'boost::arg<2>' being compiled
C:\opt\rosdeps\x64\include\boost-1_66\boost/bind/placeholders.hpp(46): note: see reference to class template instantiation 'boost::arg<1>' being compiled
D:\a\1\a\_ws\src\moveit\moveit_ros\planning_interface\py_bindings_tools\include\moveit/py_bindings_tools/serialize_msg.h(58): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
D:\a\1\a\_ws\src\moveit\moveit_ros\planning_interface\move_group_interface\src\wrap_python_move_group.cpp(138): note: see reference to function template instantiation 'std::string moveit::py_bindings_tools::serializeMsg<moveit_msgs::RobotState>(const T &)' being compiled
with
[
T=moveit_msgs::RobotState
]
C:\opt\ros\melodic\x64\include\tf2/impl/convert.h(72): error C2668: 'tf2::fromMsg': ambiguous call to overloaded function

since function definitions in impl/convert.h are using functions in the tf2 namespace from convert.h, it still makes sense to add the tf2 scope to make sure the correct function signature is picked

@tfoote

tfoote commented Feb 22, 2019

Copy link
Copy Markdown
Member

This looks reasonable, but it's failing CI as it seems to be exposing an ordering issue for the implementation include.

@kejxu

kejxu commented Feb 22, 2019

Copy link
Copy Markdown
Contributor Author

This looks reasonable, but it's failing CI as it seems to be exposing an ordering issue for the implementation include.

not hitting any of the CI errors while on MSVC, checking on Ubuntu now

@kejxu
kejxu force-pushed the add_tf2_namespace_to_avoid_name_collision branch from 73b09fd to 3fe8f38 Compare February 26, 2019 01:15
@kejxu kejxu changed the title add tf2 namespace to avoid name collision rework Eigen functions namespace hack Feb 26, 2019
@tfoote
tfoote self-requested a review February 26, 2019 08:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants