fatal error: 'vtkExternalOpenGLRenderWindow.h' file not found
- Edit CMakeCache.txt
- Find
Module_vtkRenderingExternal:BOOL=OFF
- Change to
Module_vtkRenderingExternal:BOOL=ON
- run
cmake.
and all that jazz
Following situation: You have your own CMake Library, that depends on nanogui (probably same for other libs)
$ tree
.
├── CMakeLists.txt
├── src
│ └── main.cpp
└── ext
└── CustomLibrary
rosversion roslaunch can't locate [roslaunch]
RLException: Invalid tag: Cannot load command parameter [rosversion]
You can't start a roscore anymore, because rosversion can't find roslaunch?
roscd <some_package>
with a package you know you have installed.ROS_
env variables are all set correctly, check rospack profile
.ROS_PACKAGE_PATH
contains a lone package.xml
amidst the packages. For some reason, such a lone package.xml will prevent rospack from looking into the other folders, and thus it won't discover your installed modules.What to do if Intellisense always hangs? Use clangd instead: https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
ImportError: No module named catkin
generate_cached_setup.py
:
try:
from catkin.environment_cache import generate_environment_script
except ImportError:
# search for catkin package in all workspaces and prepend to path
for workspace in ''.split(';'):
python_path = os.path.join(workspace, 'lib/python3/dist-packages')
import numpy as np | |
def recover_6D_transform(pts_a, pts_b): | |
""" | |
Returns least squares transform between the two point | |
sets pts_a and pts_b: T_b2a (Arun et. al 1987) | |
""" | |
assert np.shape(pts_a) == np.shape(pts_b), "Input data must have same shape" | |
assert np.shape(pts_a)[1] == 3, "Expecting points as (N,3) matrix" |
import trimesh as tm | |
import numpy as np | |
def sorted_uniques(arr): | |
""" | |
np.unique mangles the order of the original array, so that the resulting | |
unique values are sorted. To keep them in the order of the original data, | |
use this function. | |
""" | |
uniques, uidxs, inverse = np.unique(arr, return_index=True, return_inverse=True) |
#!/usr/bin/env python3 | |
""" | |
Little script to compute the minimal oriented bounding box (OBB) | |
of a given mesh. | |
Takes inspiration from | |
"Fast oriented bounding box optimization on the rotation group SO(3, R)" | |
from Chang et al. 2011, and adapts it to the python ecosystem. | |
""" |
-- lunarvim uses lazy.vim for plugin management | |
-- lazy.vim works with vimscript plugins, but | |
-- need to use init, instead of config | |
lvim.plugins = { | |
...snip... | |
{ | |
'wfxr/minimap.vim', | |
init = function() | |
vim.g.minimap_auto_start = 1 | |
end |
If your docker container hangs, or complains that no display is available, even though you have an xvfb-run entrypoint, you probably need a custom init handler:
# use custom init handler so that xvfb-run is executed properly
# alternatively use docker --init, but that doesnt work in k8s
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini