Skip to content

PatrolAgent::getRobotPose returns 0 for yaw. #5

Description

@agoeckner

PatrolAgent::getRobotPose always returns 0 for yaw. This is performed intentionally as a workaround to the linker error below which occurs when attempting to use TF2 to convert quaternions to euler:

/usr/bin/ld: libPatrolAgent.a(PatrolAgent.cpp.o): in function `tf2::impl::toQuaternion(geometry_msgs::msg::Quaternion_<std::allocator<void> > const&)':
PatrolAgent.cpp:(.text._ZN3tf24impl12toQuaternionERKN13geometry_msgs3msg11Quaternion_ISaIvEEE[_ZN3tf24impl12toQuaternionERKN13geometry_msgs3msg11Quaternion_ISaIvEEE]+0x2f): undefined reference to `tf2::fromMsg(geometry_msgs::msg::Quaternion_<std::allocator<void> > const&, tf2::Quaternion&)'

Issue in question is located here: https://github.com/NU-IDEAS-Lab/patrolling_sim/blob/feature/ros2_sim_env/src/patrol_algorithms_base/src/PatrolAgent.cpp#L490

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions