Skip to content

Instantly share code, notes, and snippets.

View tutorgaming's full-sized avatar
🤖
Beep Boop Beep Beep

iTUTOR tutorgaming

🤖
Beep Boop Beep Beep
View GitHub Profile
<launch>
<arg name="model" default="$(find urdf_tutorial)/urdf/05-visual.urdf"/>
<arg name="gui" default="true" />
<arg name="rvizconfig" default="$(find urdf_tutorial)/rviz/urdf.rviz" />
<param name="robot_description" command="$(find xacro)/xacro --inorder $(arg model)" />
<!-- State Publisher -->
<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
<node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher" />
<!-- Rviz -->
@tutorgaming
tutorgaming / find_planner_plugin.py
Created October 2, 2019 19:14
Playing with ROSPKG
from rospkg import RosPack
# Create Ros Pack instace
rp = RosPack()
pluginlib_deb = rp.get_depends_on('pluginlib')
navcore_deb = rp.get_depends_on('nav_core')
plugin_nav_core = list(set(pluginlib_deb).intersection(navcore_deb))
@tutorgaming
tutorgaming / look_legs.py
Created February 6, 2020 11:00 — forked from awesomebytes/look_legs.py
Look with PR2 head to closest legs
#!/usr/bin/env python
import rospy
from people_msgs.msg import PositionMeasurementArray, PositionMeasurement
from pr2_controllers_msgs.msg import PointHeadActionGoal
import tf.transformations
from geometry_msgs.msg import PointStamped
"""
@tutorgaming
tutorgaming / launch.py
Created February 20, 2020 11:31
Playing with Subprocess
#!/usr/bin/python
import subprocess
import time
def bash_command(cmd):
subprocess.Popen(cmd)
def gnome_terminal_open_tab(cmd_list):
"""
Open The Command in tabs
@tutorgaming
tutorgaming / find_network_setting.bash
Created September 9, 2020 08:30
Raspberry Pi Bash Startup Script
FILE=/boot/wifi-setup.yaml
if [[ -f "$FILE" ]]; then
# Do the copy and apply the netplan profile
echo "$FILE exists."
fi
@tutorgaming
tutorgaming / raspberry-pi-2-3-and-4-wireless-bridge-ubuntu-server-18.04-arm+netplan.md Raspberry Pi 2/3B/B+/4B Wireless Bridge using Ubuntu Server 18.04 ARM Image and Netplan

Raspberry Pi 2/3B/B+/4B Wireless Bridge using Ubuntu Server 18.04 ARM Image and Netplan

The initial goal of this project is to use the raspberry pi in place of my Wireless Range Extender and then going from 3 wireless networks (2.4ghz, 2.4ghz extended, 5ghz) at home to only one (5ghz). This way I'm reducing the exposition to radio waves for the whole familly at home.

Let's go technical

Ok, enough drama for now, let's go technical. 😁

Setup

@tutorgaming
tutorgaming / diff_drive_estimation_simple.py
Last active September 30, 2020 11:10
Differential Drive Kinematics
# Reference
# http://planning.cs.uiuc.edu/node659.html
# Author : C3MX <tutorgaming@gmail.com>
# Global Variables
odom_x = 0.0
odom_y = 0.0
odom_theta = 0.0
# Wheel&Encoder Config
@tutorgaming
tutorgaming / .vimrc
Last active March 26, 2021 12:01
MY VIM SETTING ! - vim_plug
call plug#begin()
Plug 'tpope/vim-fugitive'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-sensible'
Plug 'fratajczak/one-monokai-vim'
Plug 'gosukiwi/vim-atom-dark'
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
@tutorgaming
tutorgaming / play_rtsp_nvdec_jetson_agx.py
Last active August 12, 2023 11:30
RTSP Stream through GStreamer + STDOUT on Jetson Xavier AGX
#!/usr/bin/python
"""
RTSP Stream Reader Class for Jetson Xavier AGX
Requirement : Jetpack, OpenCV 4.4 with CUDA-Enabled
Tested RTSP Stream from
- HIKVISION DS-2CD2021-IAX [1280*720 Main-Stream Selected]
CPU Used : 20-35% on Jetson AGX
@tutorgaming
tutorgaming / launch.launch
Created May 22, 2023 09:22
rospy ROS1 Connection Header Secret !
<?xml version="1.0"?>
<launch>
<node pkg="test_pkg" type="quick_publisher.py" name="my_talker_1" output="screen" />
<node pkg="test_pkg" type="quick_publisher.py" name="my_talker_2" output="screen" />
<node pkg="test_pkg" type="quick_publisher.py" name="my_talker_3" output="screen" />
<node pkg="test_pkg" type="quick_publisher.py" name="my_talker_4" output="screen" />
</launch>