- ☝️ Check my Google Docs
🟢ROSLaunch
that Gazebo world that I created via udacity_office.launch
.
✅ It’s probably due to insufficient memory. I have migrated the whole course repos to local windows 11, wsl2, ubuntu 20.04, ros, gazebo 11 (classic). Originally i was using VMWare with the ubuntu 16.04 image.
VMware: vmw_ioctl_command error Cannot allocate memory.
Aborted (core dumped)
[gazebo_gui-3] process has died
obond@udacity:~/catkin_ws$ roslaunch my_robot udacity_office.launch
... logging to /home/robond/.ros/log/fc58a24c-efb7-11ef-ac2e-000c29b977f9/roslaunch-udacity-6115.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://192.168.146.128:33359/
SUMMARY
========
PARAMETERS
* /joint_state_publisher/use_gui: False
* /robot_description: <?xml version="1....
* /rosdistro: kinetic
* /rosversion: 1.12.7
* /use_sim_time: True
NODES
/
gazebo (gazebo_ros/gzserver)
gazebo_gui (gazebo_ros/gzclient)
joint_state_publisher (joint_state_publisher/joint_state_publisher)
robot_state_publisher (robot_state_publisher/robot_state_publisher)
rviz (rviz/rviz)
urdf_spawner (gazebo_ros/spawn_model)
auto-starting new master
process[master]: started with pid [6131]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to fc58a24c-efb7-11ef-ac2e-000c29b977f9
process[rosout-1]: started with pid [6144]
started core service [/rosout]
process[gazebo-2]: started with pid [6147]
process[gazebo_gui-3]: started with pid [6153]
process[joint_state_publisher-4]: started with pid [6178]
process[robot_state_publisher-5]: started with pid [6179]
process[urdf_spawner-6]: started with pid [6180]
process[rviz-7]: started with pid [6181]
SpawnModel script started
[ INFO] [1740075897.463273383]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1740075897.464587612]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[INFO] [1740075897.525276, 0.000000]: Loading model XML from ros parameter
[INFO] [1740075897.528256, 0.000000]: Waiting for service /gazebo/spawn_urdf_model
[INFO] [1740075898.134898, 0.000000]: Calling service /gazebo/spawn_urdf_model
[INFO] [1740075898.180367, 0.000000]: Spawn status: SpawnModel: Entity pushed to spawn queue, but spawn service timed out waiting for entity to appear in simulation under the name udacity_office_my_robot
[urdf_spawner-6] process has finished cleanly
log file: /home/robond/.ros/log/fc58a24c-efb7-11ef-ac2e-000c29b977f9/urdf_spawner-6*.log
[ INFO] [1740075898.516658742, 1549.348000000]: Camera Plugin: Using the 'robotNamespace' param: '/'
[ INFO] [1740075898.530733224, 1549.348000000]: Laser Plugin: Using the 'robotNamespace' param: '/'
[ INFO] [1740075898.531429882, 1549.348000000]: Starting Laser Plugin (ns = /)
[ INFO] [1740075898.535874445, 1549.348000000]: Camera Plugin (ns = /) <tf_prefix_>, set to ""
[ INFO] [1740075898.552923307, 1549.348000000]: Laser Plugin (ns = /) <tf_prefix_>, set to ""
[ INFO] [1740075898.641781446, 1549.348000000]: Starting plugin DiffDrive(ns = //)
[ INFO] [1740075898.641935340, 1549.348000000]: DiffDrive(ns = //): <rosDebugLevel> = na
[ INFO] [1740075898.643362848, 1549.348000000]: DiffDrive(ns = //): <tf_prefix> =
[ INFO] [1740075898.644614865, 1549.348000000]: DiffDrive(ns = //): Try to subscribe to cmd_vel
[ INFO] [1740075898.647578356, 1549.348000000]: DiffDrive(ns = //): Subscribe to cmd_vel
[ INFO] [1740075898.648702679, 1549.348000000]: DiffDrive(ns = //): Advertise odom on odom
[ INFO] [1740075898.659440552, 1549.353000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1740075898.723666300, 1549.378000000]: Physics dynamic reconfigure ready.
VMware: vmw_ioctl_command error Cannot allocate memory.
Aborted (core dumped)
[gazebo_gui-3] process has died [pid 6153, exit code 134, cmd /opt/ros/kinetic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/robond/.ros/log/fc58a24c-efb7-11ef-ac2e-000c29b977f9/gazebo_gui-3.log].
log file: /home/robond/.ros/log/fc58a24c-efb7-11ef-ac2e-000c29b977f9/gazebo_gui-3*.log
[rviz-7] process has finished cleanly
log file: /home/robond/.ros/log/fc58a24c-efb7-11ef-ac2e-000c29b977f9/rviz-7*.log
^C[robot_state_publisher-5] killing on exit
[joint_state_publisher-4] killing on exit
[gazebo-2] killing on exit
[gazebo-2] escalating to SIGTERM
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
robond@udacity:~/catkin_ws$ cat /home/robond/.ros/log/fc58a24c-efb7-11ef-ac2e-000c29b977f9/urdf_spawner-6*.log
[rospy.client][INFO] 2025-02-20 10:24:57,418: init_node, name[/urdf_spawner], pid[6180]
[xmlrpc][INFO] 2025-02-20 10:24:57,419: XML-RPC server binding to 0.0.0.0:0
[xmlrpc][INFO] 2025-02-20 10:24:57,419: Started XML-RPC server [http://192.168.146.128:33187/]
[rospy.impl.masterslave][INFO] 2025-02-20 10:24:57,419: _ready: http://192.168.146.128:33187/
[rospy.init][INFO] 2025-02-20 10:24:57,419: ROS Slave URI: [http://192.168.146.128:33187/]
[rospy.registration][INFO] 2025-02-20 10:24:57,419: Registering with master node http://localhost:11311
[xmlrpc][INFO] 2025-02-20 10:24:57,420: xml rpc node: starting XML-RPC server
[rospy.init][INFO] 2025-02-20 10:24:57,519: registered with master
[rospy.rosout][INFO] 2025-02-20 10:24:57,520: initializing /rosout core topic
[rospy.rosout][INFO] 2025-02-20 10:24:57,521: connected to core topic /rosout
[rospy.simtime][INFO] 2025-02-20 10:24:57,522: initializing /clock core topic
[rospy.simtime][INFO] 2025-02-20 10:24:57,523: connected to core topic /clock
[rosout][INFO] 2025-02-20 10:24:57,525: Loading model XML from ros parameter
[rosout][INFO] 2025-02-20 10:24:57,528: Waiting for service /gazebo/spawn_urdf_model
[rospy.internal][INFO] 2025-02-20 10:24:57,779: topic[/rosout] adding connection to [/rosout], count 0
[rosout][INFO] 2025-02-20 10:24:58,134: Calling service /gazebo/spawn_urdf_model
[rosout][INFO] 2025-02-20 10:24:58,180: Spawn status: SpawnModel: Entity pushed to spawn queue, but spawn service timed out waiting for entity to appear in simulation under the name udacity_office_my_robot
[rospy.core][INFO] 2025-02-20 10:24:58,180: signal_shutdown [atexit]
[rospy.internal][INFO] 2025-02-20 10:24:58,183: topic[/rosout] removing connection to /rosout
[rospy.impl.masterslave][INFO] 2025-02-20 10:24:58,184: atexit
🟢 ignore this section. failed attempts:
rtabmap-ros
link to targetEigen3::Eigen
not found issue.~/catkin_ws3/src/rtabmap_ros/rtabmap_rviz_plugins/CMakeLists.txt
Line 99add
find_package(Eigen3 REQUIRED NO_MODULE)
❌set(EIGEN3_INCLUDE_DIR "/usr/include/eigen3") ❌
https://stackoverflow.com/a/64188943
include_directories(/usr/include/eigen3) ❌
set(Eigen3_DIR "/usr/local/share/eigen3/cmake")
find_package(Eigen3 REQUIRED) ❌
set(Eigen3_DIR "/usr/lib/cmake/eigen3")
find_package(Eigen3 REQUIRED NO_MODULE)
Smellly on Mar 25, 2020 · edited by Smellly
Update my Eigen version from 3.2 to 3.3.9 (git clone && make && make install)
Then replace find_package(Eigen3 REQUIRED) to
list(APPEND CMAKE_INCLUDE_PATH "/usr/local/include")
find_package (Eigen3 3.3 REQUIRED NO_MODULE) ❌
ducha-aiki/pymagsac#4 (comment)
list(APPEND CMAKE_INCLUDE_PATH "/home/robond/eigen-3.3.9/cmake") ❌
## "/home/robond/eigen-3.3.9" ❌
find_package (Eigen3 3.3 REQUIRED NO_MODULE)
find_path(EIGEN3_INCLUDE_DIR NAMES Eigen/Core PATHS /usr/include/eigen3)
include_directories(${EIGEN3_INCLUDE_DIR}) ❌
set(CMAKE_PREFIX_PATH "/usr/lib/cmake/eigen3" ${CMAKE_PREFIX_PATH}) ## added by nov05
find_package(Eigen3 REQUIRED) ## added by nov05 ❌
set(CMAKE_PREFIX_PATH "/usr/local/share/eigen3/cmake" ${CMAKE_PREFIX_PATH}) ## added by nov05
find_package(Eigen3 3.3 REQUIRED NO_MODULE) ## added by nov05 ❌
Add
sudo gedit /usr/share/cmake-3.16/Modules/FindEigen3.cmake
❓https://gitlab.com/libeigen/eigen/-/raw/3.2/cmake/FindEigen3.cmake?ref_type=heads
ROS Noetic (and its packages like
tf_conversions
) is built against system-wide Eigen at/usr/include/eigen3
(which isEigen 3.3.7
on WSL2 Ubuntu 20.04).The user installed
Eigen 3.3.9
is at/usr/local/include/eigen3
.pkg-config --cflags eigen3
points to/usr/local/include/eigen3
— this could confuse CMake or conflict with ROS.✅✅✅ It looks like between Eigen3 3.2 and 3.3 it changed from using FindEigen3.cmake to Eigen3Config.cmake. This changed how to include Eigen3 into a project and in 3.3 it uses Eigen3::Eigen3. But as it turns out on Ubuntu 16.04 the package is libeigen3-dev (3.3~beta1-2) and 3.3 beta versions didn't export Eigen3::Eigen3 instead it contains:
add_definitions ( ${EIGEN3_DEFINITIONS} )
include_directories ( ${EIGEN3_INCLUDE_DIRS} )
So just remove target_link_libraries(KFilter Eigen3::Eigen) and it should be fine.
https://stackoverflow.com/a/53992826
$ catkin_make -DCMAKE_BUILD_TYPE=Release
-DRTABMAP_SYNC_MULTI_RGBD=ON
-DRTABMAP_SYNC_USER_DATA=ON
-DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.2
-DOpenCV_DIR=/home/robond/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/lib/cmake/opencv4
-j1