This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source: https://tuw-cpsg.github.io/tutorials/docker-ros/ | |
$ docker pull ros:melodic | |
$ docker run -it --name melodic ros:melodic | |
$ docker exec -it melodic bash | |
$ docker start melodic | |
$ docker start melodic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# author: ravi joshi | |
# date: 19 mar 2020 | |
# this shell script converts all PDF files to JPG files | |
# it walks recursively inside the given directory | |
# requirement: it uses ImageMagick command line tool for PDF to JPG convertion. | |
# check here (https://github.com/ravijo/image-video-editing#install-imagemagick-on-ubuntu-1404) | |
# for more information | |
if [ $# -eq 0 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# tf2_ros_example.py: example showing how to use tf2_ros API | |
# Author: Ravi Joshi | |
# Date: 2018/12/6 | |
# import modules | |
import rospy | |
import tf2_ros |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# author: ravi joshi | |
# date: 29 sep 2018 | |
# this shell script prints all the information of processes using GPU | |
# grab all the processes shown by nvidia-smi | |
pids=$(nvidia-smi | awk '$4=="G" || $4=="C" {print $3}') | |
# print information of each proces | |
ps -fp $pids |