Skip to content

Issues with robot_state submodule, master branch not compiling #3

Closed

Description

@vmayoral

@anasarrak, please have a look at this:

/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/robot_state/src/conversions.cpp:541:62: error: cannot pass object of non-trivial type 'const std::__1::__vector_base<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >::value_type' (aka 'const std::__1::basic_string<char>') through variadic function; call will abort at runtime [-Wnon-pod-varargs]
      ROS_ERROR_NAMED(LOGNAME.c_str(), "Missing variable " , state.getVariableNames()[i]);
                                                             ^
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/logging/include/moveit/logging/logging.h:41:25: note: expanded from macro 'ROS_ERROR_NAMED'
#define ROS_ERROR_NAMED RCUTILS_LOG_ERROR
                        ^
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:989:12: warning: returning reference to local temporary object [-Wreturn-stack-address]
    return IDENTITY_TRANSFORM;
           ^~~~~~~~~~~~~~~~~~
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:993:12: warning: returning reference to local temporary object [-Wreturn-stack-address]
    return global_link_transforms_[lm->getLinkIndex()];
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:1001:12: warning: returning reference to local temporary object [-Wreturn-stack-address]
    return IDENTITY_TRANSFORM;
           ^~~~~~~~~~~~~~~~~~
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:1008:12: warning: returning reference to local temporary object [-Wreturn-stack-address]
    return IDENTITY_TRANSFORM;
           ^~~~~~~~~~~~~~~~~~
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:1384:82: error: cannot pass object of non-trivial type 'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') through variadic function; call will abort at runtime [-Wnon-pod-varargs]
      ROS_ERROR_NAMED(LOGNAME.c_str(), "The following IK frame does not exist:", ik_frame);
                                                                                 ^
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/logging/include/moveit/logging/logging.h:41:25: note: expanded from macro 'ROS_ERROR_NAMED'
#define ROS_ERROR_NAMED RCUTILS_LOG_ERROR
                        ^
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:1448:30: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
                      typeid(*solver).name(), jmg->getName().c_str(), error_msg.c_str());
                             ^
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/logging/include/moveit/logging/logging.h:41:25: note: expanded from macro 'ROS_ERROR_NAMED'
#define ROS_ERROR_NAMED RCUTILS_LOG_ERROR
                        ^
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:1542:90: error: cannot pass object of non-trivial type 'std::string' (aka 'basic_string<char, char_traits<char>, allocator<char> >') through variadic function; call will abort at runtime [-Wnon-pod-varargs]
            ROS_ERROR_NAMED(LOGNAME.c_str(), "The following Pose Frame does not exist ", pose_frame);
                                                                                         ^
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/logging/include/moveit/logging/logging.h:41:25: note: expanded from macro 'ROS_ERROR_NAMED'
#define ROS_ERROR_NAMED RCUTILS_LOG_ERROR
                        ^
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:1693:79: warning: unused parameter 'options' [-Wunused-parameter]
                                    const kinematics::KinematicsQueryOptions& options)
                                                                              ^
/Users/victor/ros2_moveit_ws/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:2286:63: warning: unused parameter 'prefix' [-Wunused-parameter]
std::string RobotState::getStateTreeString(const std::string& prefix) const
                                                              ^
2 warnings and 1 error generated.
make[2]: *** [robot_state/CMakeFiles/moveit_robot_state.dir/src/conversions.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
9 warnings and 2 errors generated.
make[2]: *** [robot_state/CMakeFiles/moveit_robot_state.dir/src/robot_state.cpp.o] Error 1
make[1]: *** [robot_state/CMakeFiles/moveit_robot_state.dir/all] Error 2
make: *** [all] Error 2

I'm working in OS X. Cleaned up completely and re-built. Same issues.

Activity

  1. added
    bug
    on Feb 20, 2019
  2. vmayoral commented on Feb 20, 2019

    @vmayoral
    Author

    Added the OS X label, I guess this only applies there with clang.

  3. vmayoral commented on Feb 20, 2019

    @vmayoral
    Author

    Seems to be fixed with fe274ec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

OS Xbug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions