Skip to content

Instantly share code, notes, and snippets.

View devashishRaj's full-sized avatar
💭
Electrical and Electronics

devashishRaj devashishRaj

💭
Electrical and Electronics
View GitHub Profile
misc/docker_vol/
.env
/.DS_Store

Motivation

Why is this change necessary? What problem does it solve?

Closes #ISSUE_NUMBER

Implementation

How does this PR solve the problem? What technical approach is taken?

Testing

How did you verify that this works? Were automated tests written?

@devashishRaj
devashishRaj / harmonic
Created September 20, 2023 07:19
gazebo source install
colcon build --cmake-args -DCMAKE_MACOSX_RPATH=FALSE -DCMAKE_INSTALL_NAME_DIR=$(pwd)/install/lib --merge-install ─╯
Starting >>> gz-cmake3
--- stderr: gz-cmake3
warning: Tag 'OUTPUT_TEXT_DIRECTION' at line 102 of file '/Users/devashishraj/workspace/build/gz-cmake3/api_tagfile.dox' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'CLANG_ASSISTED_PARSING' at line 1072 of file '/Users/devashishraj/workspace/build/gz-cmake3/api_tagfile.dox' belongs to an option that was not enabled at compile time.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u", or recompile doxygen with this feature enabled.
warning: Tag 'CLANG_OPTIONS' at line 1080 of file '/Users/devashishraj/workspace/build/gz-cmake3/api_tagfile.dox' belongs to an option that was not enabled at compile time.
To avoid this warning please remove this line from y
@devashishRaj
devashishRaj / brew ogre2.2 build fail
Created September 18, 2023 04:05
brew ign-fortress
cmake .. -DOGRE_LIB_DIRECTORY=lib/OGRE-2.2 -DOGRE_BUILD_LIBS_AS_FRAMEWORKS=OFF -DOGRE_FULL_RPATH:BOOL=FALSE -DOGRE_BUILD_DOCS:BOOL=FALSE -DOGRE_INSTALL_DOCS:BOOL=FALSE -DOGRE_BUILD_SAMPLES:BOOL=FALSE -DOGRE_BUILD_SAMPLES2:BOOL=FALSE -DOGRE_INSTALL_SAMPLES:BOOL=FALSE -DOGRE_INSTALL_SAMPLES_SOURCE:BOOL=FALSE -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/ogre2.2/2.2.6+20211021~312bf40_1 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TESTING=OFF -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
-- The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/Library/Homebrew/shims/mac/super/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compil
@devashishRaj
devashishRaj / gui
Created September 18, 2023 03:33
gazebo harmonic
gz sim -v 4 -g ─╯
[Msg] Gazebo Sim GUI v8.0.0~pre1
[Dbg] [Application.cc:101] Initializing application.
[Dbg] [Application.cc:133] Qt using Metal graphics interface
[GUI] [Dbg] [Application.cc:662] Create main window
[GUI] [Wrn] [Application.cc:904] [QT] Populating font family aliases took 132 ms. Replace uses of missing font family "Roboto" with one that exists to avoid this cost.
[GUI] [Dbg] [PathManager.cc:68] Requesting resource paths through [/gazebo/resource_paths/get]
[GUI] [Dbg] [Gui.cc:343] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [PathManager.cc:57] Received resource paths.
[GUI] [Dbg] [Gui.cc:401] Requesting GUI from [/world/shapes/gui/info]...
@devashishRaj
devashishRaj / server
Created September 18, 2023 03:31
gazebo harmonic
gz sim -v 4 shapes.sdf -s ─╯
[Msg] Gazebo Sim Server v8.0.0~pre1
[Msg] Loading SDF world file[/opt/homebrew/Cellar/gz-sim8/8.0.0~pre1_2/share/gz/gz-sim8/worlds/shapes.sdf].
[Msg] Serving entity system service on [/entity/system/add]
[Msg] Loaded level [3]
[Msg] No systems loaded from SDF, loading defaults
[Dbg] [ServerConfig.cc:1016] Loaded (3) plugins from file [/Users/devashishraj/.gz/sim/8/server.config]
Error while loading the library [/opt/homebrew/Cellar/gz-sim8/8.0.0~pre1_2/lib/gz-sim-8/plugins/libgz-sim-physics-system.dylib]: dlopen(/opt/homebrew/Cellar/gz-sim8/8.0.0~pre1_2/lib/gz-sim-8/plugins/libgz-sim-physics-system.dylib, 0x0085): Library not loaded: @rpath/libgz-sim8.8.dylib
Referenced from: <49228B77-D4C0-3B11-AB82-49855DAAFC3D> /opt/homebrew/Cellar/gz-sim8/8.0.0~pre1_2/lib/gz-sim-8/plugins/libgz-sim8-physics-system.8.0.0~pre1.dylib
Reason: tried: '/opt/homebrew/Cellar/gz-sim8/8.0.0~p
root@docker-desktop:/# source ros_entrypoint.sh
root@docker-desktop:/# rviz2
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Unable to create glx context
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
@devashishRaj
devashishRaj / x11_docker_mac.md
Created September 3, 2023 01:33 — forked from cschiewek/x11_docker_mac.md
X11 in docker on macOS

To forward X11 from inside a docker container to a host running macOS

  1. Install XQuartz: https://www.xquartz.org/
  2. Launch XQuartz. Under the XQuartz menu, select Preferences
  3. Go to the security tab and ensure "Allow connections from network clients" is checked.
  4. Run xhost + ${hostname} to allow connections to the macOS host *
  5. Setup a HOSTNAME env var export HOSTNAME=`hostname`*
  6. Add the following to your docker-compose:
 environment:
@devashishRaj
devashishRaj / manual gist ignition-fortress
Created August 29, 2023 07:28
cmkae logs ignition-fortress
2023-08-29 07:14:34 +0000
cmake
..
-DOGRE_LIB_DIRECTORY=lib/OGRE-2.2
-DOGRE_BUILD_LIBS_AS_FRAMEWORKS=OFF
-DOGRE_FULL_RPATH:BOOL=FALSE
-DOGRE_BUILD_DOCS:BOOL=FALSE
-DOGRE_INSTALL_DOCS:BOOL=FALSE
-DOGRE_BUILD_SAMPLES:BOOL=FALSE
@devashishRaj
devashishRaj / ignition-fortress
Created August 29, 2023 07:22
ignition-fortress install fail on apple m2
In file included from /tmp/ogre2.2-20230829-25292-1javrvx/ogre-next-312bf406a77244afe230930e67e3e5d52a119507/OgreMain/src/OgreArchive.cpp:29:
In file included from /tmp/ogre2.2-20230829-25292-1javrvx/ogre-next-312bf406a77244afe230930e67e3e5d52a119507/OgreMain/include/OgreStableHeaders.h:44:
In file included from /tmp/ogre2.2-20230829-25292-1javrvx/ogre-next-312bf406a77244afe230930e67e3e5d52a119507/OgreMain/include/OgreCommon.h:35:
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.3/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^
In file included from /tmp/ogre2.2-20230829-25292-1javrvx/ogre-next-312bf406a77244afe230930e67e3e5d52a119507/OgreMain/src/OgreArchive.cpp:29:
In file included from /tmp/ogre2.2-20230829-25292-1javrvx/ogre-next-312bf406a77244afe230930e67e3e5d52a119507/OgreMain/include/OgreStableHeaders.h:44:
In file included from /tmp/ogre2.2-20230829-25292-1javrvx/ogre-