Mavros: SITL error: unconnected trees

Created on 14 Aug 2019  ·  15Comments  ·  Source: mavlink/mavros

Hey,

with actual PX4 master and mavros i am getting following error

ODOM: Ex: Could not find a connection between 'local_origin_ned' and 'fcu' because they are not part of the same tree.Tf has two or more unconnected trees.

frames.pdf

bug

Most helpful comment

Use this launch file and problem will be solved.

<node name="task_3" pkg="task_3" type="task_3_node" output="screen"/>
<node name ="link1_broadcaster" pkg="tf" type="static_transform_publisher" args="0 0 0 0 0 0 local_origin_ned fcu 10" />

That doesn't solve anything. Just hides the problem ;)

All 15 comments

That's a direct consequence of https://github.com/mavlink/mavros/pull/1252. A definite solution is being worked on so stay tunned.

Is there any update on this issue. PX4 firmware was working fine for me over the last few months, but since the last 3 days it shows the this error

ODOM: Ex: Could not find a connection between 'local_origin_ned' and 'fcu' because they are not part of the same tree.Tf has two or more unconnected trees.

I even tried building the latest version of firmware from scratch and it shows the same error. Is there a fix for this?

Has anyone got any solution for this?

I am also facing the same problem.

Having same problem and waiting the update.

Hi, I've tried to build the latest firmware and I'm facing with the same problem. I'm not sure what should I do for solving it. Should I wait for a while for the update or can I modify something inside the Firmware?

@all the issue your are facing won't break any functionality of MAVROS. Please allow #1300 to be reviewed and merged and as soon as it gets upstream, we will do the release.

Having same problem and waiting the update.

Thanks for all your work guys.

Use this launch file and problem will be solved.



<node name="task_3" pkg="task_3" type="task_3_node" output="screen"/>
<node name ="link1_broadcaster" pkg="tf" type="static_transform_publisher" args="0 0 0 0 0 0 local_origin_ned fcu 10" />

Use this launch file and problem will be solved.

<node name="task_3" pkg="task_3" type="task_3_node" output="screen"/>
<node name ="link1_broadcaster" pkg="tf" type="static_transform_publisher" args="0 0 0 0 0 0 local_origin_ned fcu 10" />

That doesn't solve anything. Just hides the problem ;)

I'm trying to collect data from mavros/global_position/compass_hdg and mavros/global_position/global and this topics are not being published. I'm having the error the same error of the issue:

ODOM: Ex: Could not find a connection between 'local_origin_ned' and 'fcu' because they are not part of the same tree.Tf has two or more unconnected trees.

Is there any relationship between the error and the topics?
What can I do?

Thank you all!

I'm trying to collect data from mavros/global_position/compass_hdg and mavros/global_position/global and this topics are not being published. I'm having the error the same error of the issue:

ODOM: Ex: Could not find a connection between 'local_origin_ned' and 'fcu' because they are not part of the same tree.Tf has two or more unconnected trees.

Is there any relationship between the error and the topics?
What can I do?

Thank you all!

Yes. 0.33 was already release and soon the fix should be available through apt. Anyway, if you want this fixed now, build or install MAVROS from source.

Actually, I rephrase: the problem you are having has nothing to do with the TF issue. The more obvious issue I see is that you don't have GPS data on your autopilot. Anyway, different issue, so please do not continue the discussion in this topic.

My Systemis : Ubuntu 18.04 + PX4+ ROS Melodic Morenia.
I am in full simulate, I don't have pixwark
i have same troubles when i use : roslaunch px4 mavros_posix_sitl.launch
I can't understand these solution.
please tell me how to solve? thanks a lot !

My Systemis : Ubuntu 18.04 + PX4+ ROS Melodic Morenia.
I am in full simulate, I don't have pixwark
i have same troubles when i use : roslaunch px4 mavros_posix_sitl.launch
I can't understand these solution.
please tell me how to solve? thanks a lot !

Try to source catkin_ws/devel/setup.bash and /opt/ros/.../setup.bash. My problem was solved doing it. Maybe you can try to run the command inside the catkin_ws folder and rebuild the project before sourcing the environment variables.

Was this page helpful?
0 / 5 - 0 ratings