ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

lifecycle_msgs/msg/state.hpp is missing by build ROS2 UR_Robot_DRIVER

asked 2021-12-22 11:46:16 -0500

kolasha gravatar image

updated 2021-12-22 16:45:51 -0500

Geoff gravatar image

Good evening to all participants. when i'm compiling the last state of the UR driver for ROS2, so i get a fatal error

workspace/install/hardware_interface/include/hardware_interface/system_interface.hpp:26:10
"fatal error: lifecycle_msgs/msg/state.hpp: No such file or directory26  #include "lifecycle_msgs/msg/state.hpp"

the package "ifecycle_msgs" is installed, and the Cmakelist contains "find_package(rclcpp_lifecycle REQUIRED)".

has someone already such experience done and how to make it fix and running???

thanks for any information about that

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2021-12-22 16:47:57 -0500

Geoff gravatar image

You need to also depend on the lifecycle_msgs package. Add it to your package.xml and CMakeLists.txt so it is found and the include directories are added to your compilation commands by CMake.

edit flag offensive delete link more
0

answered 2022-01-12 07:11:35 -0500

kolasha gravatar image

updated 2022-01-12 17:47:50 -0500

Geoff gravatar image

Hello Geoff, unfortunately that doesn't solve the problem.here is my output.(Ubuntu 20.04, Galactic, ur_driver for ROS2)

Starting >>> control_msgs
Starting >>> ros2_control_test_assets
Starting >>> controller_manager_msgs
Starting >>> ur_client_library                                                                                             
Starting >>> ur_dashboard_msgs
Starting >>> ur_msgs                                                                                                           
Starting >>> diffbot_description
Starting >>> ros2_control_test_nodes                                                                                           
/home/nikolaj/.local/lib/python3.8/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/nikolaj/.local/lib/python3.8/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
Finished <<< ros2_control_test_assets [2.36s]                                                               
Starting >>> rrbot_description
Finished <<< diffbot_description [2.27s]                                                                 
Starting >>> ur_description
Finished <<< ur_description [1.90s]                                                                      
Starting >>> ur_moveit_config
Finished <<< ur_client_library [4.46s]                                                                   
Finished <<< rrbot_description [2.19s]
--- stderr: ros2_control_test_nodes                                                                      
/home/nikolaj/.local/lib/python3.8/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/nikolaj/.local/lib/python3.8/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
/home/nikolaj/.local/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< ros2_control_test_nodes [4.54s]
Finished <<< ur_moveit_config [1.31s]                                                                    
Finished <<< ur_msgs [11.6s]                                                                                       
Finished <<< controller_manager_msgs [11.9s]                                                                       
Finished <<< ur_dashboard_msgs [12.1s]                                                                   
Finished <<< control_msgs [14.5s]                      
Starting >>> hardware_interface
Finished <<< hardware_interface [4.07s]                        
Starting >>> controller_interface
Starting >>> ros2_control_demo_hardware               
Starting >>> transmission_interface
Finished <<< transmission_interface [2.84s]                                                                                
Finished <<< ros2_control_demo_hardware [3.01s]                                                                     
Finished <<< controller_interface [3.76s]                        
Starting >>> controller_manager
Finished <<< controller_manager [5.05s]                        
Starting >>> forward_command_controller
Starting >>> joint_trajectory_controller                    
Starting >>> force_torque_sensor_broadcaster
Starting >>> joint_state_broadcaster
Starting >>> ur_bringup                                                                                          
Starting >>> diff_drive_controller                                                                               
Starting >>> imu_sensor_broadcaster
Starting >>> ros2controlcli
--- stderr: ros2controlcli                                                                                                   
/home/nikolaj/.local/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< ros2controlcli [5.56s]
Starting >>> gripper_controllers
Finished <<< ur_bringup [7.12s]                                                                                                
Starting >>> ros2_control
Finished <<< forward_command_controller [7.64s]                                                                                
Starting >>> effort_controllers
Finished <<< joint_state_broadcaster [7.74s]                                       
Starting >>> position_controllers
Finished <<< imu_sensor_broadcaster [8.37s]                                             
Starting >>> velocity_controllers
Finished <<< force_torque_sensor_broadcaster [9.27s]                                    
Finished <<< joint_trajectory_controller [9.45s]                                                                            
Starting >>> ur_controllers                                                                                       
Starting >>> ros2_control_demo_bringup
Finished <<< diff_drive_controller [9.44s]                                                                        
Finished <<< ros2_control [2.56s]                                                                        
Finished <<< ros2_control_demo_bringup [1.74s]                                                               
Starting >>> ros2_control_demos
Finished <<< gripper_controllers [6.91s]                                                                          
Finished <<< ros2_control_demos [1.79s]                                                                       
Finished <<< effort_controllers [6.68s]                                                                                
Finished <<< position_controllers [6.75s]                                                                             
Finished <<< velocity_controllers [6.48s]                                                                    
Starting >>> ros2_controllers
Finished <<< ur_controllers [6.05s]                                                                 
Starting >>> ur_robot_driver
Finished <<< ros2_controllers [1.20s]                                                                
--- stderr: ur_robot_driver                                
include
In file included from /home/nikolaj/workspace/ros_ur_driver/src/Universal_Robots_ROS2_Driver/ur_robot_driver/include/ur_robot_driver/hardware_interface.hpp:36,
                 from /home/nikolaj/workspace/ros_ur_driver/src ...
(more)
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-12-22 11:46:16 -0500

Seen: 440 times

Last updated: Jan 12 '22