Open annanya-tamu opened 6 months ago
The logging node requires the 'packaging' module.
(py3.10) annanya@annanya:~/Documents/spot_ros_ws$ ros2 launch spot_driver spot_driver.launch.py
[INFO] [launch]: All log files can be found below /home/annanya/.ros/log/2024-04-02-10-25-22-840051-annanya-5340
[INFO] [launch]: Default logging verbosity is set to INFO
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[INFO] [spot_ros2-1]: process started with pid [5374]
[INFO] [spot_image_publisher_node-2]: process started with pid [5376]
[INFO] [spot_inverse_kinematics_node-3]: process started with pid [5378]
[INFO] [robot_state_publisher-4]: process started with pid [5380]
[INFO] [state_publisher_node-5]: process started with pid [5382]
[INFO] [spot_alerts-6]: process started with pid [5384]
[INFO] [component_container_mt-7]: process started with pid [5395]
[robot_state_publisher-4] [INFO] [1712071524.790050461] [robot_state_publisher]: got segment arm_link_el0
[robot_state_publisher-4] [INFO] [1712071524.790187344] [robot_state_publisher]: got segment arm_link_el1
[robot_state_publisher-4] [INFO] [1712071524.790200934] [robot_state_publisher]: got segment arm_link_fngr
[robot_state_publisher-4] [INFO] [1712071524.790214714] [robot_state_publisher]: got segment arm_link_hr0
[robot_state_publisher-4] [INFO] [1712071524.790223093] [robot_state_publisher]: got segment arm_link_sh0
[robot_state_publisher-4] [INFO] [1712071524.790230761] [robot_state_publisher]: got segment arm_link_sh1
[robot_state_publisher-4] [INFO] [1712071524.790238620] [robot_state_publisher]: got segment arm_link_wr0
[robot_state_publisher-4] [INFO] [1712071524.790246224] [robot_state_publisher]: got segment arm_link_wr1
[robot_state_publisher-4] [INFO] [1712071524.790253592] [robot_state_publisher]: got segment base_link
[robot_state_publisher-4] [INFO] [1712071524.790261114] [robot_state_publisher]: got segment body
[robot_state_publisher-4] [INFO] [1712071524.790268931] [robot_state_publisher]: got segment front_left_hip
[robot_state_publisher-4] [INFO] [1712071524.790276657] [robot_state_publisher]: got segment front_left_lower_leg
[robot_state_publisher-4] [INFO] [1712071524.790284668] [robot_state_publisher]: got segment front_left_upper_leg
[robot_state_publisher-4] [INFO] [1712071524.790292355] [robot_state_publisher]: got segment front_rail
[robot_state_publisher-4] [INFO] [1712071524.790300223] [robot_state_publisher]: got segment front_right_hip
[robot_state_publisher-4] [INFO] [1712071524.790308146] [robot_state_publisher]: got segment front_right_lower_leg
[robot_state_publisher-4] [INFO] [1712071524.790316034] [robot_state_publisher]: got segment front_right_upper_leg
[robot_state_publisher-4] [INFO] [1712071524.790323516] [robot_state_publisher]: got segment rear_left_hip
[robot_state_publisher-4] [INFO] [1712071524.790331239] [robot_state_publisher]: got segment rear_left_lower_leg
[robot_state_publisher-4] [INFO] [1712071524.790339150] [robot_state_publisher]: got segment rear_left_upper_leg
[robot_state_publisher-4] [INFO] [1712071524.790346711] [robot_state_publisher]: got segment rear_rail
[robot_state_publisher-4] [INFO] [1712071524.790354330] [robot_state_publisher]: got segment rear_right_hip
[robot_state_publisher-4] [INFO] [1712071524.790362001] [robot_state_publisher]: got segment rear_right_lower_leg
[robot_state_publisher-4] [INFO] [1712071524.790369728] [robot_state_publisher]: got segment rear_right_upper_leg
[component_container_mt-7] [INFO] [1712071524.996605002] [container]: Load Library: /opt/ros/humble/lib/libdepth_image_proc.so
[spot_alerts-6] Traceback (most recent call last):
[spot_alerts-6] File "/home/annanya/Documents/spot_ros_ws/install/spot_driver/lib/spot_driver/spot_alerts", line 5, in
Fixed by running conda install packaging
The proto2ros package needs the multipled package.
(py3.10) annanya@annanya:~/Documents/spot_ros_ws$ ros2 launch spot_driver spot_driver.launch.py
[INFO] [launch]: All log files can be found below /home/annanya/.ros/log/2024-04-02-10-57-45-203401-annanya-7148
[INFO] [launch]: Default logging verbosity is set to INFO
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[INFO] [spot_ros2-1]: process started with pid [7182]
[INFO] [spot_image_publisher_node-2]: process started with pid [7184]
[INFO] [spot_inverse_kinematics_node-3]: process started with pid [7186]
[INFO] [robot_state_publisher-4]: process started with pid [7188]
[INFO] [state_publisher_node-5]: process started with pid [7190]
[INFO] [spot_alerts-6]: process started with pid [7192]
[INFO] [component_container_mt-7]: process started with pid [7194]
[robot_state_publisher-4] [INFO] [1712073467.914745223] [robot_state_publisher]: got segment arm_link_el0
[robot_state_publisher-4] [INFO] [1712073467.914902931] [robot_state_publisher]: got segment arm_link_el1
[robot_state_publisher-4] [INFO] [1712073467.914917563] [robot_state_publisher]: got segment arm_link_fngr
[robot_state_publisher-4] [INFO] [1712073467.914926143] [robot_state_publisher]: got segment arm_link_hr0
[robot_state_publisher-4] [INFO] [1712073467.914933901] [robot_state_publisher]: got segment arm_link_sh0
[robot_state_publisher-4] [INFO] [1712073467.914941361] [robot_state_publisher]: got segment arm_link_sh1
[robot_state_publisher-4] [INFO] [1712073467.914948998] [robot_state_publisher]: got segment arm_link_wr0
[robot_state_publisher-4] [INFO] [1712073467.914956473] [robot_state_publisher]: got segment arm_link_wr1
[robot_state_publisher-4] [INFO] [1712073467.914963898] [robot_state_publisher]: got segment base_link
[robot_state_publisher-4] [INFO] [1712073467.914971266] [robot_state_publisher]: got segment body
[robot_state_publisher-4] [INFO] [1712073467.914979000] [robot_state_publisher]: got segment front_left_hip
[robot_state_publisher-4] [INFO] [1712073467.914986491] [robot_state_publisher]: got segment front_left_lower_leg
[robot_state_publisher-4] [INFO] [1712073467.914994163] [robot_state_publisher]: got segment front_left_upper_leg
[robot_state_publisher-4] [INFO] [1712073467.915001704] [robot_state_publisher]: got segment front_rail
[robot_state_publisher-4] [INFO] [1712073467.915009137] [robot_state_publisher]: got segment front_right_hip
[robot_state_publisher-4] [INFO] [1712073467.915016483] [robot_state_publisher]: got segment front_right_lower_leg
[robot_state_publisher-4] [INFO] [1712073467.915024185] [robot_state_publisher]: got segment front_right_upper_leg
[robot_state_publisher-4] [INFO] [1712073467.915031672] [robot_state_publisher]: got segment rear_left_hip
[robot_state_publisher-4] [INFO] [1712073467.915039141] [robot_state_publisher]: got segment rear_left_lower_leg
[robot_state_publisher-4] [INFO] [1712073467.915046464] [robot_state_publisher]: got segment rear_left_upper_leg
[robot_state_publisher-4] [INFO] [1712073467.915053792] [robot_state_publisher]: got segment rear_rail
[robot_state_publisher-4] [INFO] [1712073467.915061265] [robot_state_publisher]: got segment rear_right_hip
[robot_state_publisher-4] [INFO] [1712073467.915068588] [robot_state_publisher]: got segment rear_right_lower_leg
[robot_state_publisher-4] [INFO] [1712073467.915076254] [robot_state_publisher]: got segment rear_right_upper_leg
[component_container_mt-7] [INFO] [1712073468.062470606] [container]: Load Library: /opt/ros/humble/lib/libdepth_image_proc.so
[component_container_mt-7] [INFO] [1712073468.160013886] [container]: Found class: rclcpp_components::NodeFactoryTemplate
Fixed by running conda install -c conda-forge multipledispatch
The ros_helpers.py requires cv2
(py3.10) annanya@annanya:~/Documents/spot_ros_ws$ ros2 launch spot_driver spot_driver.launch.py
[INFO] [launch]: All log files can be found below /home/annanya/.ros/log/2024-04-02-11-04-57-652483-annanya-7465
[INFO] [launch]: Default logging verbosity is set to INFO
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[INFO] [spot_ros2-1]: process started with pid [7500]
[INFO] [spot_image_publisher_node-2]: process started with pid [7502]
[INFO] [spot_inverse_kinematics_node-3]: process started with pid [7504]
[INFO] [robot_state_publisher-4]: process started with pid [7506]
[INFO] [state_publisher_node-5]: process started with pid [7508]
[INFO] [spot_alerts-6]: process started with pid [7510]
[INFO] [component_container_mt-7]: process started with pid [7520]
[robot_state_publisher-4] [INFO] [1712073899.638841397] [robot_state_publisher]: got segment arm_link_el0
[robot_state_publisher-4] [INFO] [1712073899.639594625] [robot_state_publisher]: got segment arm_link_el1
[robot_state_publisher-4] [INFO] [1712073899.639990662] [robot_state_publisher]: got segment arm_link_fngr
[robot_state_publisher-4] [INFO] [1712073899.640331738] [robot_state_publisher]: got segment arm_link_hr0
[robot_state_publisher-4] [INFO] [1712073899.640688234] [robot_state_publisher]: got segment arm_link_sh0
[robot_state_publisher-4] [INFO] [1712073899.641038093] [robot_state_publisher]: got segment arm_link_sh1
[robot_state_publisher-4] [INFO] [1712073899.641416117] [robot_state_publisher]: got segment arm_link_wr0
[robot_state_publisher-4] [INFO] [1712073899.641807416] [robot_state_publisher]: got segment arm_link_wr1
[robot_state_publisher-4] [INFO] [1712073899.642159470] [robot_state_publisher]: got segment base_link
[robot_state_publisher-4] [INFO] [1712073899.642740004] [robot_state_publisher]: got segment body
[robot_state_publisher-4] [INFO] [1712073899.643165302] [robot_state_publisher]: got segment front_left_hip
[robot_state_publisher-4] [INFO] [1712073899.643592934] [robot_state_publisher]: got segment front_left_lower_leg
[robot_state_publisher-4] [INFO] [1712073899.644002789] [robot_state_publisher]: got segment front_left_upper_leg
[robot_state_publisher-4] [INFO] [1712073899.644380453] [robot_state_publisher]: got segment front_rail
[robot_state_publisher-4] [INFO] [1712073899.644764676] [robot_state_publisher]: got segment front_right_hip
[robot_state_publisher-4] [INFO] [1712073899.645137506] [robot_state_publisher]: got segment front_right_lower_leg
[robot_state_publisher-4] [INFO] [1712073899.645506447] [robot_state_publisher]: got segment front_right_upper_leg
[robot_state_publisher-4] [INFO] [1712073899.646903565] [robot_state_publisher]: got segment rear_left_hip
[robot_state_publisher-4] [INFO] [1712073899.648884019] [robot_state_publisher]: got segment rear_left_lower_leg
[robot_state_publisher-4] [INFO] [1712073899.648910063] [robot_state_publisher]: got segment rear_left_upper_leg
[robot_state_publisher-4] [INFO] [1712073899.648927167] [robot_state_publisher]: got segment rear_rail
[robot_state_publisher-4] [INFO] [1712073899.648938314] [robot_state_publisher]: got segment rear_right_hip
[robot_state_publisher-4] [INFO] [1712073899.648953758] [robot_state_publisher]: got segment rear_right_lower_leg
[robot_state_publisher-4] [INFO] [1712073899.648969573] [robot_state_publisher]: got segment rear_right_upper_leg
[component_container_mt-7] [INFO] [1712073899.808832972] [container]: Load Library: /opt/ros/humble/lib/libdepth_image_proc.so
[component_container_mt-7] [INFO] [1712073899.906069879] [container]: Found class: rclcpp_components::NodeFactoryTemplate
Fixed by running conda install -c conda-forge opencv
Thank you for figuring these out. We haven't currently supported a conda installation, so it's good knowledge to have for users who choose to install this way.
Did you try running the install_spot_ros2.sh
script inside of the conda environment? Just curious if that installed the other necessary ros dependencies/packages within conda. We can add a quick note about this in the "Help" section of the README too.
Thanks!
@khughes-bdai Yes I got these errors after running the install_spot_ros2.sh
script.
By the way, there were a few more conda and pip installs I had to run in order to get the driver running. This is my environment file, which you can try to use on a different machine to reproduce the same env. (it was originally a .yml file but github won't let me attach that file type) environment.txt
Thanks for all this info! I'll leave this issue open in case there are other anaconda users who might benefit from this.
Starting this thread with issues faced while trying to launch driver on python 3.10 conda env.
The rclpy package requires GLIBCXX_3.4.30, as shown by the output:
(py3.10) annanya@annanya:~/Documents/spot_ros_ws$ ros2 launch spot_driver spot_driver.launch.py [INFO] [launch]: All log files can be found below /home/annanya/.ros/log/2024-04-02-10-19-11-593847-annanya-4957 [INFO] [launch]: Default logging verbosity is set to INFO [WARNING] [launch_ros.actions.node]: Parameter file path is not a file: . [WARNING] [launch_ros.actions.node]: Parameter file path is not a file: . [WARNING] [launch_ros.actions.node]: Parameter file path is not a file: . [WARNING] [launch_ros.actions.node]: Parameter file path is not a file: . [INFO] [spot_ros2-1]: process started with pid [4991] [INFO] [spot_image_publisher_node-2]: process started with pid [4993] [INFO] [spot_inverse_kinematics_node-3]: process started with pid [4995] [INFO] [robot_state_publisher-4]: process started with pid [4997] [INFO] [state_publisher_node-5]: process started with pid [4999] [INFO] [spot_alerts-6]: process started with pid [5001] [INFO] [component_container_mt-7]: process started with pid [5012] [robot_state_publisher-4] [INFO] [1712071153.581901268] [robot_state_publisher]: got segment arm_link_el0 [robot_state_publisher-4] [INFO] [1712071153.582023665] [robot_state_publisher]: got segment arm_link_el1 [robot_state_publisher-4] [INFO] [1712071153.582036721] [robot_state_publisher]: got segment arm_link_fngr [robot_state_publisher-4] [INFO] [1712071153.582044766] [robot_state_publisher]: got segment arm_link_hr0 [robot_state_publisher-4] [INFO] [1712071153.582052190] [robot_state_publisher]: got segment arm_link_sh0 [robot_state_publisher-4] [INFO] [1712071153.582059731] [robot_state_publisher]: got segment arm_link_sh1 [robot_state_publisher-4] [INFO] [1712071153.582067147] [robot_state_publisher]: got segment arm_link_wr0 [robot_state_publisher-4] [INFO] [1712071153.582074328] [robot_state_publisher]: got segment arm_link_wr1 [robot_state_publisher-4] [INFO] [1712071153.582081463] [robot_state_publisher]: got segment base_link [robot_state_publisher-4] [INFO] [1712071153.582088811] [robot_state_publisher]: got segment body [robot_state_publisher-4] [INFO] [1712071153.582096370] [robot_state_publisher]: got segment front_left_hip [robot_state_publisher-4] [INFO] [1712071153.582103595] [robot_state_publisher]: got segment front_left_lower_leg [robot_state_publisher-4] [INFO] [1712071153.582111312] [robot_state_publisher]: got segment front_left_upper_leg [robot_state_publisher-4] [INFO] [1712071153.582118488] [robot_state_publisher]: got segment front_rail [robot_state_publisher-4] [INFO] [1712071153.582125810] [robot_state_publisher]: got segment front_right_hip [robot_state_publisher-4] [INFO] [1712071153.582133291] [robot_state_publisher]: got segment front_right_lower_leg [robot_state_publisher-4] [INFO] [1712071153.582140798] [robot_state_publisher]: got segment front_right_upper_leg [robot_state_publisher-4] [INFO] [1712071153.582148204] [robot_state_publisher]: got segment rear_left_hip [robot_state_publisher-4] [INFO] [1712071153.582155648] [robot_state_publisher]: got segment rear_left_lower_leg [robot_state_publisher-4] [INFO] [1712071153.582163083] [robot_state_publisher]: got segment rear_left_upper_leg [robot_state_publisher-4] [INFO] [1712071153.582170398] [robot_state_publisher]: got segment rear_rail [robot_state_publisher-4] [INFO] [1712071153.582177700] [robot_state_publisher]: got segment rear_right_hip [robot_state_publisher-4] [INFO] [1712071153.582184956] [robot_state_publisher]: got segment rear_right_lower_leg [robot_state_publisher-4] [INFO] [1712071153.582192557] [robot_state_publisher]: got segment rear_right_upper_leg [spot_ros2-1] Traceback (most recent call last): [spot_ros2-1] File "/home/annanya/Documents/spot_ros_ws/install/spot_driver/lib/spot_driver/spot_ros2", line 16, in
[spot_ros2-1] import bdai_ros2_wrappers.process as ros_process
[spot_ros2-1] File "/home/annanya/Documents/spot_ros_ws/build/bdai_ros2_wrappers/bdai_ros2_wrappers/process.py", line 11, in
[spot_ros2-1] import rclpy
[spot_ros2-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/init.py", line 49, in
[spot_ros2-1] from rclpy.signals import install_signal_handlers
[spot_ros2-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/signals.py", line 15, in
[spot_ros2-1] from rclpy.exceptions import InvalidHandle
[spot_ros2-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/exceptions.py", line 15, in
[spot_ros2-1] from rclpy.impl.implementation_singleton import rclpy_implementation as _rclpy
[spot_ros2-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/impl/implementation_singleton.py", line 32, in
[spot_ros2-1] rclpy_implementation = import_c_library('._rclpy_pybind11', package)
[spot_ros2-1] File "/opt/ros/humble/lib/python3.10/site-packages/rpyutils/import_c_library.py", line 39, in import_c_library
[spot_ros2-1] return importlib.import_module(name, package=package)
[spot_ros2-1] File "/home/annanya/miniconda3/envs/py3.10/lib/python3.10/importlib/init.py", line 126, in import_module
[spot_ros2-1] return _bootstrap._gcd_import(name[level:], package, level)
[spot_ros2-1] ImportError: /home/annanya/miniconda3/envs/py3.10/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/_rclpy_pybind11.cpython-310-x86_64-linux-gnu.so)
It was fixed by running
conda install -c conda-forge gcc=12.1.0
; maybe worth putting in a conda specific installation guide since the documentation currently recommends to use a virtual env.