-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
odom frame not consistent at startup #847
Comments
Thank you for your response @ashekim, I looked over that ticket and am not sure that our issues are the same. I also want to clarify that I am using an actual turtlebot3 burger and am not running simulation. Also both my computer and pi only have ROS foxy distribution installed. Currently, I am only running rviz2 and repository: |
Hi @huybeme . It appears that RVIZ crashes and throws an error if the robot position is outside of the grid. Could you please run the the command attached below on RemotePC?? Thank you |
please no need to be sorry. I appreciate your helping of my issues. I have launched your statement as requested but still have the same issues. When robot.launch.py is launched, I sometimes get an spawn way off map and get the same error code as originally stated. Whenever I keep re-launching the robot until I get within the grid, I am able to run that command successfully. I just want to clarify my end goal of my project is to write my own SLAM code. I am building a map to be the parent of odom, so odom will not end up on top. This should be okay, since I seen a few other people do this as well but if I am wrong please let me know. I also noticed that when my battery gives me the initial low battery indication, my positions actually resets to near 0,0. Not sure if this is related but thought I would bring it up in case it is. |
Hello @huybeme. I want to know if you are using the slam package you developed instead of the slam package we provide. Thank you. |
@huybeme Hi, I have same problem using TB3 Burger and rviz2. The translation.y is often out of the grid. Sometimes, it will be small, like 2 or 10, but not 0. Did you solve this problem? |
@xinxing-max Hello! I have not solved this issue definitively but as a bypass to getting things going, I sort of just keep re-launching the robot bringup through ROS until the random coordinates doesn't crash rviz. Please do keep me posted if you catch onto something that is causing this issue. |
Hi, I'm having the same problem. My tf between odom and base_footprint is:
As @xinxing-max said, the value of Thanks! Edit: I've found this issue which is similar: #880 Edit2: Based on the comment #880 (comment), I've followed these steps to "calibrate" odom:
|
Hi @huybeme, If this doesn't work for your, please let us know. |
Hi @JLBicho , Thanks for your suggestions. Your Edit2 did not always work for me. I could only restart turtlebot or relaunch bringup files to reset odom. Did those steps always work for you? After burning the ros2 foxy into the turtlebot, it has been working very well. I am using two turtlebots at the same time. So I added then the tf prefix in the robot's urdf file and also added namespaces to the published topics. I don't know if this will affect the initialization of the odom. |
Hi @xinxing-max , I'll try to burn again the foxy image to see if the problem disappears. Thanks |
This issue will be closed due to prolonged inactivity. Please try again with the Humble or Noetic versions, and if the issue persists, feel free to reopen it. |
ISSUE TEMPLATE ver. 0.4.0
Which TurtleBot3 platform do you use?
Which ROS is working with TurtleBot3?
Which SBC(Single Board Computer) is working on TurtleBot3?
Which OS you installed on SBC?
Which OS you installed on Remote PC?
Specify the software and firmware version(Can be found from Bringup messages)
Specify the commands or instructions to reproduce the issue.
on tb3_SBC: ros2 launch turtlebot3_bringup robot.launch.py
on remote computer: rqt
Copy and Paste the error messages on terminal.
rviz2: /tmp/binarydeb/ros-foxy-rviz-ogre-vendor-8.2.6/obj-x86_64-linux-gnu/ogre-v1.12.1-prefix/src/ogre-v1.12.1/OgreMain/include/OgreAxisAlignedBox.h:225: void Ogre::AxisAlignedBox::setExtents(const Vector3&, const Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"' failed.
Aborted (core dumped)
Please describe the issue in detail.
When I launch robot.launch.py, everything launches fine with no error messages, sometimes. I am trying to understand why the odom frame starts at seemingly random positions at launch. Ideally, I want to start the odom frame to start at 0,0 or where the base_footprint starts for localization.
Sometimes one of the positions is so large I get the error message stated above and crashes the rviz2 gui.
please refer to the attached image and please let me know if I need to include more details or information.
The text was updated successfully, but these errors were encountered: