[Unitree Go1][Build] Unable to build the ros package

Hello Team,

In between my development, i tried to rebuild my ros workspace. But unable to get it through.

>14unitree@unitree-desktop:~/ros_ws$ catkin build -DCMAKE_BUILD_TYPE=Release
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Profile:                     default
Extending:             [env] /home/unitree/ros_ws/devel/.private/catkin_tools_prebuild:/home/unitree/ros_ws/devel:/home/unitree/moveit_ws/devel:/opt/ros/melodic
Workspace:                   /home/unitree/ros_ws
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Build Space:        [exists] /home/unitree/ros_ws/build
Devel Space:        [exists] /home/unitree/ros_ws/devel
Install Space:      [unused] /home/unitree/ros_ws/install
Log Space:         [missing] /home/unitree/ros_ws/logs
Source Space:       [exists] /home/unitree/ros_ws/src
DESTDIR:            [unused] None
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Additional CMake Args:       -DCMAKE_BUILD_TYPE=Release
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Buildlisted Packages:        go1_base
Skiplisted Packages:         None
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Workspace configuration appears valid.

NOTE: Forcing CMake to run for each package.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
[build] Found 32 packages in 0.0 seconds.                                                                                                                                                                         
[build] Updating package table.                                                                                                                                                                                   
Starting  >>> catkin_tools_prebuild                                                                                                                                                                               
Finished  <<< catkin_tools_prebuild                [ 8.2 seconds ]                                                                                                                                                
Starting  >>> go1_base                                                                                                                                                                                            
__________________________________________________________________________________________________________________________________________________________________________________________________________________
Errors     << go1_base:cmake /home/unitree/ros_ws/logs/go1_base/build.cmake.000.log                                                                                                                               
CMake Warning (dev) at /usr/src/googletest/CMakeLists.txt:3 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/src/googletest/googlemock/CMakeLists.txt:40 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/src/googletest/googletest/CMakeLists.txt:47 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "go1_legged_msgs"
  with any of the following names:

    go1_legged_msgsConfig.cmake
    go1_legged_msgs-config.cmake

  Add the installation prefix of "go1_legged_msgs" to CMAKE_PREFIX_PATH or
  set "go1_legged_msgs_DIR" to a directory containing one of the above files.
  If "go1_legged_msgs" provides a separate development package or SDK, be
  sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:11 (find_package)


cd /home/unitree/ros_ws/build/go1_base; catkin build --get-env go1_base | catkin env -si  /usr/bin/cmake /home/unitree/ros_ws/src/go1_base --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/unitree/ros_ws/devel/.private/go1_base -DCMAKE_INSTALL_PREFIX=/home/unitree/ros_ws/install -DCMAKE_BUILD_TYPE=Release; cd -

..................................................................................................................................................................................................................
Failed     << go1_base:cmake                       [ Exited with code 1 ]                                                                                                                                         
Failed    <<< go1_base                             [ 8.1 seconds ]                                                                                                                                                
[build] Summary: 1 of 2 packages succeeded.                                                                                                                                                                       
[build]   Ignored:   31 packages were skipped or are skiplisted.                                                                                                                                                  
[build]   Warnings:  None.                                                                                                                                                                                        
[build]   Abandoned: None.                                                                                                                                                                                        
[build]   Failed:    1 packages failed.                                                                                                                                                                           
[build] Runtime: 16.6 seconds total.                                                                                                                                                                              
[build] Note: Workspace packages have changed, please re-source setup files to use them.

I tried to install the go1_legged_msgs first by partial build. But still that doesnt solved.
Could you please support?
Thank you

Update : After sourcing devel/setup.bash , i tried giving build. But most of the packages are ignored.

>14unitree@unitree-desktop:~/ros_ws$ catkin build -DCMAKE_BUILD_TYPE=Release
------------------------------------------------------------------------------------------------------
Profile:                     default
Extending:          [cached] /home/unitree/ros_ws/devel:/home/unitree/moveit_ws/devel:/opt/ros/melodic
Workspace:                   /home/unitree/ros_ws
------------------------------------------------------------------------------------------------------
Build Space:        [exists] /home/unitree/ros_ws/build
Devel Space:        [exists] /home/unitree/ros_ws/devel
Install Space:      [unused] /home/unitree/ros_ws/install
Log Space:          [exists] /home/unitree/ros_ws/logs
Source Space:       [exists] /home/unitree/ros_ws/src
DESTDIR:            [unused] None
------------------------------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
------------------------------------------------------------------------------------------------------
Additional CMake Args:       -DCMAKE_BUILD_TYPE=Release
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
------------------------------------------------------------------------------------------------------
Buildlisted Packages:        go1_base
Skiplisted Packages:         None
------------------------------------------------------------------------------------------------------
NOTE: Forcing CMake to run for each package.
------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------
WARNING: Your current environment's CMAKE_PREFIX_PATH is different from the cached CMAKE_PREFIX_PATH
used the last time this workspace was built.

If you want to use a different CMAKE_PREFIX_PATH you should call `catkin clean` to remove all
references to the previous CMAKE_PREFIX_PATH.

Cached CMAKE_PREFIX_PATH:
	/home/unitree/ros_ws/devel:/home/unitree/moveit_ws/devel:/opt/ros/melodic
Current CMAKE_PREFIX_PATH:
	/home/unitree/ros_ws/devel/.private/catkin_tools_prebuild:/home/unitree/ros_ws/devel:/home/unitree/moveit_ws/devel:/opt/ros/melodic
------------------------------------------------------------------------------------------------------

[build] Found 32 packages in 0.0 seconds.                                                                                                                                                                         
[build] Package table is up to date.                                                                                                                                                                              
Starting  >>> go1_base                                                                                                                                                                                            
__________________________________________________________________________________________________________________________________________________________________________________________________________________
Warnings   << go1_base:cmake /home/unitree/ros_ws/logs/go1_base/build.cmake.002.log                                                                                                                               
CMake Warning (dev) at /usr/src/googletest/CMakeLists.txt:3 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/src/googletest/googlemock/CMakeLists.txt:40 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/src/googletest/googletest/CMakeLists.txt:47 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

cd /home/unitree/ros_ws/build/go1_base; catkin build --get-env go1_base | catkin env -si  /usr/bin/cmake /home/unitree/ros_ws/src/go1_base --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/unitree/ros_ws/devel/.private/go1_base -DCMAKE_INSTALL_PREFIX=/home/unitree/ros_ws/install -DCMAKE_BUILD_TYPE=Release; cd -

..................................................................................................................................................................................................................
Finished  <<< go1_base                [ 41.0 seconds ]                                                                                                                                                            
[build] Summary: All 1 packages succeeded!                                                                                                                                                                        
[build]   Ignored:   31 packages were skipped or are skiplisted.                                                                                                                                                  
[build]   Warnings:  1 packages succeeded with warnings.                                                                                                                                                          
[build]   Abandoned: None.                                                                                                                                                                                        
[build]   Failed:    None.                                                                                                                                                                                        
[build] Runtime: 41.4 seconds total. 

SOLVED

Modified the file “workspace/.catkin_tools/profiles/default/config.yaml” and gave build. This time all the packages were considered.

Before

authors: []
blacklist: []
build_space: build
catkin_make_args: []
cmake_args: []
devel_layout: linked
devel_space: devel
extend_path: null
extends: null
install: false
install_space: install
isolate_install: false
jobs_args: []
licenses:
- TODO
log_space: logs
maintainers: []
make_args: []
source_space: src
use_env_cache: false
use_internal_make_jobserver: true
whitelist:
- go1_base

After

authors: []
blacklist: []
build_space: build
catkin_make_args: []
cmake_args: []
devel_layout: linked
devel_space: devel
extend_path: null
extends: null
install: false
install_space: install
isolate_install: false
jobs_args: []
licenses:
- TODO
log_space: logs
maintainers: []
make_args: []
source_space: src
use_env_cache: false
use_internal_make_jobserver: true
whitelist: []

Great to hears its been resolved!