-
Notifications
You must be signed in to change notification settings - Fork 56
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
VirtualBox extremely slow. Can't do anything meaningful #527
Comments
I run VMWare Fusion on my MacMini2018 3.2GHz 6-Core i7 which is less powerful than your config - BUT here is what I found will get me 31FPS on Rviz2:
|
VirtualBox doesn't allow more than 256MB. I've tried increasing it from 128MB to 256MB and for some reason it was even more slow (or at least it didn't improve the performance). Thanks for the suggestion. I'll install and try 'VMWare Fusion' and use the same configuration as you and see how things go. Thank you. |
Are there any other "Graphics Controller" choices than VMSVGA? Maybe choosing your graphics card is available and then setting more memory? |
I reread the OP, you are doing everything on one machine? Is this with a physical bot or simulator? If sim try giving more processors to VB, if physical bot, try moving one function at a time off your mac and onto the Raspberry Pi. If physybot, are you running simple discovery or discovery server? simple discovery can overload the Create3. Check the create3 log for cpu/memory when you are running all this stuff. IMO of course..I don't really know what I'm talking about ;) |
Thank you very much for your feedback related to this issue. After seeing your first comment I decided to try VMWare Fusion with the same configuration as yours. It is much faster and very responsive. Thank you very much. |
Our next challenge would appear to be configuring a non-RPi time server. Our choices are in the VM or directly on the Mac. I'm thinking I would like "on the Mac" so that the Create3 and the Raspberry Pi have a time server regardless of the visualization desktop (the virtual machine) up or not. I'm starting the research - seems to be the clue to getting good SLAM and navigation per Running chrony on the Mac supposedly needs us to turn off the Mac setting to set time automatically. When I figure it all out, I'll post on my blog: #517 (comment) |
Very interesting - I set up my Raspberry Pi (5) from scratch and installed TB4 software using the GitHub setup command line. I installed turtlebot4-setup using I submitted an issue to ask why they are recommending to people to setup an external time server when installing the turtlebot4-setup package configures a time server on the Raspberry Pi. |
Robot Model
Turtlebot4 Standard
ROS distro
Humble
Networking Configuration
Discovery Server
OS
Ubuntu 22.04
Built from source or installed?
Installed
Package version
Jazzy
Type of issue
Navigation (SLAM, Nav2 etc.)
Expected behaviour
When VirtualBox is installed and used in a powerful MacBook Pro with ample memory, processing power etc., should be able to run ROS tools (nav2, Rviz, etc.,) fast. But not happening.
Actual behaviour
Since this form doesn't have an option to select the following I have selected the existing options for ROS Distro and OS.
ROS Distro: Jazzy
OS: Ubuntu 24.04
I'm using VirtualBox 7.0.0 on my MacBook Pro. My MacBook Pro has,
macOS Solana 14.7, 2.4 GHz 8-Core Intel Core i9 processor, 32 GB 2667 MHz DDR4 memory, Over 100 GB free space in SSD HD
This configuration works fantastic for my iOS App development using XCode.
For my TB4 development I've installed VirtualBox 7.0.0. I'm using Ubuntu 24.04 with ROS2 Jazzy. Using TB4 with Rviz I've generated a map of a location. When I try the 'Nav to Pose' from Rviz by marking the Initial Pose and Nav to Pose locations
(OR)
Running the node 'ros2 run turtlebot4_python_tutorials nav_to_pose'
It rarely works. Meaning sometimes it does and most of the times it fails. In the terminal I get so much logs. Also when Rviz is running or the python tutorial node is launched, my MacBook is making lotta noise and the MacBook Activity Monitor shows the '% CPU' used by the VirtualBox is over 350. Also the MacBook battery depletes very fast even while it is connected with the charger. Clicking on any screen in the VirtualBox either takes so much time to load or it never loads at all.
Just to be clear, I'm doing everything "as is" (from Generating the map to Navigation etc) per the instruction / commands documented in the Turtlebot 4 User Manual in the turtlebot4 GitHub.
Here I've attached few screenshots of my VirtualBox Settings:
Error messages
To Reproduce
There is nothing specific.
Other notes
No response
The text was updated successfully, but these errors were encountered: