Not being able to use hector_mapping
I've been trying to use hector_mapping to better estimate height of a flying robot. Nevertheless, I still get the wrong information like below all the times as I rostopic echo
.
pose:
position:
x: 0.0
y: 0.0
z: 0.0
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 1.0
I doubt my subscription code is wrong. I subscribed it like below:
pose2D_hector_sub_ = nh_.subscribe("/slam_out_pose", 1, &PoseEstimator::pose2DHectorCallback, this);
And in the tutorial, it says something in the subscribed topics. I haven't yet subscribed to syscommand
. Is it a must or an option subscribing to syscommand
topic? If it's a must, how to subscribe it? and what's the use of its subscription?
What could go wrong?
Thanks in advance.