Skip to content

Instantly share code, notes, and snippets.

View gmp-prem's full-sized avatar
😀
Always open to new things!

Prem Gamolped gmp-prem

😀
Always open to new things!
View GitHub Profile
@gmp-prem
gmp-prem / latex writing in vscode
Created April 23, 2025 07:24
latex writing in vscode
1. install vscode
2. after install vscode, install the latex workshop extension, and close
FOR WINDOWS
3. download and install the MiKTeX software from https://miktex.org/
when installing the miktex, install to the default path
4. download and install Perl for Windows from this link https://strawberryperl.com/
when installing, install to the default path. after install the software, the perl app will ask
If you have a code structure like this
root_dir
script_dir
env.py
util_dir
commons.py
image_proc.py
main.py
We can use command "rosdep" to perform auto-install the reuqired ROS dependency in the workspace
1. go to the workspace that you are working on
2. update the needed dependencies in the workspace using (this command will fetch the package that is EOL only,
if non-EOL ROS distribution, it will not fetch)
$ rosdep update
3. after update the ros dependencies, we can perform the auto installation from
$ rosdep install --from-paths src --ignore-src -r -y
@gmp-prem
gmp-prem / Using Git LFS
Last active August 21, 2022 18:14
Push files more than 100mb on GitHub
This tutorial was provided to work on Linux Ubuntu and recommended to work with GitHub desktop which can be installed via
this link
https://gist.github.com/berkorbay/6feda478a00b0432d13f1fc0a50467f1
Git LFS will provide the ability to push files with more than 100mb on github, to perform that process
0. Install the Github Desktop
0.1 download the Github desktop
sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.9.3-linux3/GitHubDesktop-linux-2.9.3-linux3.deb
@gmp-prem
gmp-prem / auto install dependencies on the ros workspace
Created August 19, 2022 04:58
auto install dependencies on the ros workspace
We can use command "rosdep" to perform auto-install the reuqired ROS dependency in the workspace
1. go to the workspace that you are working on
2. update the needed dependencies in the workspace using (this command will fetch the package that is EOL only,
if non-EOL ROS distribution, it will not fetch)
$ rosdep update
3. after update the ros dependencies, we can perform the auto installation from
$ rosdep install --from-paths src --ignore-src -r -y
@gmp-prem
gmp-prem / installing matlab through command line
Created July 31, 2022 06:54
installing matlab through command line
ref from this link
https://www.how2shout.com/linux/how-to-install-matlab-in-ubuntu-20-04/
install the unzip pkg
$ sudo apt-get install unzip -y
create a folder for extracting the matlab installer files
$ mkdir matlab_installer
extract file to the created folder
@gmp-prem
gmp-prem / install azure kinect driver without adding repo key
Created July 31, 2022 05:47
install azure kinect driver without adding repo key
For the record, another method of getting the latest binaries in Ubuntu 20.04 without adding keys
for apt is by simply downloading them manually from Microsoft's package repository and installing
them using dpkg (i.e. dpkg -i k4a-tools_1.4.1_amd64.deb).
The relevant package repository folder for k4a-tools is here and for libk4a + libk4a-dev here.
k4a-tools : https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/k/k4a-tools/
libk4a + libk4a-dev : https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/libk/
1. install libsoundio1 and libsoundio-dev
$ sudo apt-get install libsoundio1 libsoundio-dev
@gmp-prem
gmp-prem / installing azure kinect dk driver on ubuntu 20 (using ubuntu18 repo)
Created July 31, 2022 05:37
installing azure kinect dk driver on ubuntu 20 (using ubuntu18 repo)
# official website for azure kinect driver sdk
# currently, sdk supports up to ubuntu 18 only
https://docs.microsoft.com/en-us/azure/kinect-dk/sensor-sdk-download
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prod
curl -sSL https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft-prod.list
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
@gmp-prem
gmp-prem / grasp.md
Last active March 16, 2022 09:09
How to grasp spagetthi
  1. bring up everything except detection
roslaunch motoman_move_action except_detection.launch
  1. open detection server (in new terminal)
conda activate mmd
roscd mmd_ros/script
python food_detection_server.py