Skip to content

Instantly share code, notes, and snippets.

View mbed92's full-sized avatar
😎

Michał Bednarek mbed92

😎
View GitHub Profile
@jasongill
jasongill / nvidia-jetson-libnvdla_compiler-fix-instructions.md
Last active June 16, 2025 15:12
Fixing the "libnvdla_compiler.so" on Jetson devices

If you, like me, just got a new Nvidia Jetson Orin Nano Super Developer Kit and are struggling to get the examples provided by Nvidia to run due to the following error:

ImportError: libnvdla_compiler.so: cannot open shared object file: No such file or directory

then you probably don't want to have to deal with downgrading the flashed version of things just to see if it will work. The issue is that the libnvdla_compiler.so file is not included in the latest (36.4.2 as of this writing) version of the Jetpack software which you're instructed to install to upgrade the firmware on the device.

The fix is to grab the file from the .deb file from the previous version. Running the following command will fix the issue:

#!/usr/bin/env python
# controllers: trot_ros, static_walk_ros, freeze, free_gait_impedence_ros
# trot_ros: WalkingTrot, Stand
# static_walk: walk, stand
import sys
import time
import rospy
from rocoma_msgs.srv import SwitchController as rocomaSwitchController
from anymal_msgs.srv import SwitchController as anymalSwitchController
from joy_manager_msgs.msg import AnyJoy
@Ashioto
Ashioto / ActorCritic.py
Created April 18, 2017 07:51
Solution to Continuous Mountain Car
import tensorflow as tf
import numpy as np
import os
import gym
import time
import sklearn
import itertools
import sklearn.pipeline
import sklearn.preprocessing
from sklearn.kernel_approximation import RBFSampler
@Ashioto
Ashioto / ActorCritic.py
Last active June 20, 2019 09:29
Solution to Continuous MountainCar problem
import tensorflow as tf
import numpy as np
import os
import gym
import time
import sklearn
import itertools
import sklearn.pipeline
import sklearn.preprocessing
from sklearn.kernel_approximation import RBFSampler
@borgfriend
borgfriend / maya2017install.sh
Last active April 13, 2024 13:34
Maya 2017 Installation on Ubuntu 16.04
#!/bin/bash
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
echo Please run this script using sudo
echo Just type “sudo !!”
exit
fi
#Check for 64-bit arch
if [uname -m != x86_64]; then
@plasticbox
plasticbox / getcmdoption.cpp
Last active August 7, 2022 19:57
Simple Parse Command Line Arguments in C++
std::string getCmdOption(int argc, char* argv[], const std::string& option)
{
std::string cmd;
for( int i = 0; i < argc; ++i)
{
std::string arg = argv[i];
if(0 == arg.find(option))
{
std::size_t found = arg.find_first_of(option);
cmd =arg.substr(found + 1);
@brio1009
brio1009 / BlenderRenderSequenceV1.py
Last active May 3, 2024 07:30
Script to render a sequence of ply files with Blender.
# Script to render a sequence of ply files with Blender. First, setup your scene
# and material for the imported meshes. Scene must be in "OBJECT"-mode.
# Fill in variables in options.
# References.
# See: http://blender.stackexchange.com/questions/24133/modify-obj-after-import-using-python
# and: http://blenderartists.org/forum/showthread.php?320309-How-to-import-ply-files-from-script
import bpy
# Options.
meshFolder = "" # Folder without ending "\\".
@bgshih
bgshih / tps-demo.py
Created October 21, 2015 09:48
A simple example of Thin Plate Spline (TPS) transformation in Numpy.
import ipdb
import numpy as np
import numpy.linalg as nl
import matplotlib.pyplot as plt
from scipy.spatial.distance import pdist, cdist, squareform
def makeT(cp):
# cp: [K x 2] control points
# T: [(K+3) x (K+3)]
K = cp.shape[0]