0
$\begingroup$

I have the following tf tree, but I'm missing the /map frame. Where does it come from? What is supposed to publish it?

existing tf tree

$\endgroup$

2 Answers 2

0
$\begingroup$

and welcome to Robotics Stack Exchange. Could you provide why you would like to create a /map frame? This could be done easily creating a tf publisher using tf2 package like this:

rosrun tf2_ros static_transform_publisher x y z yaw pitch roll frame_id child_frame_id

However, this is just for statics transforms as you can read. Normally the map frame is used to do some localization algorithms, and it wouldn't make sense to say that map and base_footprint transformation is static. Normally, you would like an odom frame as well.

I would encourage you to read ROS tutorials as well as REP-105

$\endgroup$
3
  • $\begingroup$ hello thankyou for the help , i need the /map frame and the /odom frame because i am currently trying to do localization with amcl. But i am new to ros and currently having troubles with the odom and map frame which is currently missing , i triedd static transform but doesnt workout since i need map --> base_footprint / map -->odom--->base_footprint. Dont have much time left for my project as i wasted too much time on this frames $\endgroup$
    – nolan
    Commented Nov 7, 2023 at 1:07
  • $\begingroup$ i now have the /map frames but im just missing the odom frame $\endgroup$
    – nolan
    Commented Nov 7, 2023 at 2:35
  • $\begingroup$ Odom normally is created by the controller of the wheels of your robot, in order to know where should it be taking into several aspects as the radius of the wheels. If you are working in simulation you can use some plugins or even ros control, but this last one is a bit harder to set up. Another possibility could be to develop some software in order to create it yourself, taking information such as speed and IMU data, as an example. There are many possibilities out there. The issue here is that you shouldn't post projects tasks as it violates rules in the forum. $\endgroup$
    – ÁngeLoGa
    Commented Nov 7, 2023 at 7:02
0
$\begingroup$

Normally, I use robot_localization package that does both kalman filter and publish a TF tree from "map"->"odom"->"base_link". Also, here is the Wiki page

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.