-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed Frame No tf data. Actual error: Frame [map] does not exist #20
Comments
@bahman-nouri Where are you seeing this error? Rviz? |
I have installed a fresh Ubuntu 22.04 + ROS2 Humble. I have run these and see the error: [INFO] [launch]: All log files can be found below /home/bahman/.ros/log/2023-10-25-14-54-45-897278-bahman-virtual-machine-25170 |
@bahman-nouri |
The error "No tf data. Actual error: Frame [map] does not exist" can be seen from RVIZ. Can you add the version of Ubuntu and ROS2 that you used in your repository? |
@bahman-nouri I am using Ubuntu 22.04 and ROS Humble. You just need to specify the "fixed frame" as "map" in Rviz or publish a static tf in relation to "map" to resolve the error |
I have selected "fixed frame" as "map", still have the same issue. Maybe the reason is that you have used classic gazebo using "make px4_sitl gazebo". I have run "make px4_sitl gz_x500" new Gazebo. |
@bahman-nouri I am not running gazebo classic, as written in the readme |
@bahman-nouri Have you solved this? I'm running the same setup as yours, please can you tell me how to run this. |
No, I have not solved the issue. However, I recommended you to exactly follow the instruction from https://docs.px4.io/main/en/ros/ros2_comm.html. ( Use Ubuntu 22.04, ROS2 Humble ) import rclpy class OffboardControl(Node):
def main(args=None) -> None: if name == 'main': |
@bahman-nouri I have gone through this example, but im unable to run this, this is a py file which doesnt have the necessary launch files. |
I want to clarify one point. When you run make px4_sitl gz_x500, you have two choices for sending the desired trajectory, one option is using a mission planner like QGC and the second method is using ROS to publish a set point. What I can see is that you are trying to run one drone using both of them! In the multiple drones case, you can control some by programming with ROS and control the others using QGC. |
@bahman-nouri I'm aware of the two methods, here using QGC, I'm not sending any waypoint, I just used QGC to change it to offboardmode, Actually in the back end ros is running, that is why the Rviz trajectory you see is as per the ros offboard control node. I'm not sure why the drone doesn't arm or move, but the trajectory is visuzlised. |
How can I fix this issue?
Fixed Frame
No tf data. Actual error: Frame [map] does not exist
The text was updated successfully, but these errors were encountered: