Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Add RViz2 #5

Merged
merged 4 commits into from
Dec 22, 2023
Merged

Add RViz2 #5

merged 4 commits into from
Dec 22, 2023

Conversation

atinfinity
Copy link
Contributor

@atinfinity atinfinity commented Dec 20, 2023

I add to build RViz2. So, I back-ported the following package from iron branch.

  • console_bridge_vendor
  • rviz_ogre_vendor

I checked on the following environment.

  • macOS Sonoma 14.0
  • M1 MacBook Air
rviz2
スクリーンショット 2023-12-20 22 49 13

@Ar-Ray-code
Copy link

Ar-Ray-code commented Dec 21, 2023

image

I also did it! Thanks a lot 😄

  • MacBook Air2 (m2-arm64, 16GB)
  • Mac OS : Sonoma 14.1.1(23B81)
  • 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:31 PDT 2023
  • Xcode/xcodebuild : Version 15.1 (15C65)

Dependencies to be added

  • empy == 3.3.4

@atinfinity
Copy link
Contributor Author

@Ar-Ray-code Thank you for your check!

Dependencies to be added

  • empy == 3.3.4

I read current install_guide.md. There is the following description.

python3.11 -m pip install -U \
      argcomplete catkin_pkg colcon-common-extensions coverage \
      cryptography empy flake8 flake8-blind-except==0.1.1 flake8-builtins \
      flake8-class-newline flake8-comprehensions flake8-deprecated \
      flake8-docstrings flake8-import-order flake8-quotes \
      importlib-metadata lark==1.1.1 lxml matplotlib mock mypy==0.931 netifaces \
      nose pep8 psutil pydocstyle pydot pygraphviz pyparsing==2.4.7 \
      pytest-mock rosdep rosdistro setuptools==59.6.0 vcstool

So, empy package was installed.

@Ar-Ray-code
Copy link

I followed that procedure and empy==4 was installed.
empy==4 is the cause of the ROS2 build failure. (related issue colcon/colcon-core#602 )

@atinfinity
Copy link
Contributor Author

@Ar-Ray-code Thank you for your information. I understood. I fixed in 3599702.

@TakanoTaiga
Copy link
Owner

TakanoTaiga commented Dec 22, 2023

@atinfinity
Thank you for your Pull Request. When I tested it in my environment, I encountered the following error. Is there a solution to enhance the reproducibility of the build?

Test Environment:

  • M1 Max 64GB RAM (Virtual M1 Max v8-core 16GB)
  • OS: macOS Sonoma 14.2.1 (MiniVirtual (Virtual Machine))
  • Environment set up from scratch (including tests with Xcode installed)

Encountered Error:

xcode select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance In file included from /Users/taiga/Desktop/ros?_ml._native/build/rvizogre_vendor/ogre-v1.12.10-prefix/src/ogre-v1.12.10/0greMain/src/0greASTCCodec.cpp:29:
In file included from /Users/taiga/Desktop/ros?_ml._native/build/rvizogre_vendor/ogre-v1.12.10-prefix/src/ogre-v1.12.10/0greMain/src/0greStableHeaders.h:45:
In file included from /Users/taiga/Desktop/ros?ml_native/build/rvizogre_vendor/ogre-v1.12.10-prefix/src/ogre-v1.12.10/0greMain/include/OgrePrerequisites.h:35:
/Users/taiga/Desktop/ros?_m/_native/build/rviz_ogre_vendor/ogre-v1.12.10-prefix/src/ogre-v1.12.10/0greMain/include/0grePlatform.h:183:13: fatal error: 'Availability.h' file not found

# include "Availability.h"
スクリーンショット 2023-12-22 18 17 11

@atinfinity
Copy link
Contributor Author

@TakanoTaiga

xcode select: error: tool 'xcodebuild' requires Xcode, but active developer directory

Did you install Xcode? According to this error message it appears that Xcode is not installed.
You can check by executing xcodebuild -version.

$ xcodebuild -version
Xcode 15.1
Build version 15C65

# include "Availability.h"

OGRE includes "Availability.h". This header file is provided by MacOSX SDK.
https://github.com/OGRECave/ogre/blob/v1.12.10/OgreMain/include/OgrePlatform.h#L182-L188

I could find this header file.

$ find /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform -name Availability.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/Availability.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/Availability.h

@TakanoTaiga
Copy link
Owner

I was able to build in this environment. Despite having Xcode installed, I discovered a bug in Xcode that prevents access from the command line. @TakanoTaiga will address the Xcode bug in a separate PR later. Finally, I would like to thank everyone who contributed to this PR.

@TakanoTaiga TakanoTaiga merged commit 8f89143 into TakanoTaiga:master Dec 22, 2023
@atinfinity atinfinity deleted the add-rviz2 branch December 23, 2023 12:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants