Closed weisongwen closed 5 years ago
@weisongwen tf2::doTransform
for geometry_msgs::Vector3
was added on Feb 9, 2018, and ROS Jade has been EOL-ed on May 2017.
No packages are maintained for Jade now; please consider upgrading to live distro.
Hi @at-wat Thanks for your kind reply. sure.
the package use odometry from /odom topic. however, the topic /tf still contains the transform from /odom to /base_link. this means we need two different odometry?
the package use odometry from /odom topic. however, the topic /tf still contains the transform from /odom to /base_link. this means we need two different odometry?
TF usage in this node is basically same as amcl. (see http://wiki.ros.org/amcl#Transforms)
Localizer estimates map -> base_link
transform and broadcasts map -> odom
. This enables other nodes to interpolate short term motion of the robot using odometry.
You can set ~odom_frame
parameter to base_link
to disable interpolation using odometry and make mcl_3dl node directly broadcast map -> base_link
transform.
https://github.com/at-wat/mcl_3dl/blob/8d870244b012c8fc77fe85c91536492ec58cee96/config/test_localization_noodom.yaml#L3
/odom
topic is used to predict particle state transition using twist data in odometry, which is not directly provided in TF.
tf
and odom
usage is off-topic of this issue.
Feel free to open a new issue if it is still unclear.
Hi @at-wat , I got a error when compile the latest version of this package, do you have any ideas on this bug? my computer is : Ubuntu 14.04 + ROS Jade
CMakeFiles/mcl_3dl.dir/src/mcl_3dl.cpp.o: In function > >(geometrymsgs::Vector3<std::allocator > const&, geometrymsgs::Vector3<std::allocator >&, geometrymsgs::TransformStamped<std::allocator > const&)'
collect2: error: ld returned 1 exit status
mcl_3dl::MCL3dlNode::cbImu(boost::shared_ptr<sensor_msgs::Imu_<std::allocator<void> > const> const&)': mcl_3dl.cpp:(.text._ZN7mcl_3dl10MCL3dlNode5cbImuERKN5boost10shared_ptrIKN11sensor_msgs4Imu_ISaIvEEEEE[_ZN7mcl_3dl10MCL3dlNode5cbImuERKN5boost10shared_ptrIKN11sensor_msgs4Imu_ISaIvEEEEE]+0x4a7): undefined reference to
void tf2::doTransform<geometrymsgs::Vector3<std::allocator