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
from PyQt5.QtWidgets import QSlider | |
class DoubleSlider(QSlider): | |
def __init__(self, *args, **kwargs): | |
super().__init__(*args, **kwargs) | |
self.decimals = 5 | |
self._max_int = 10 ** self.decimals | |
super().setMinimum(0) |
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
; This file contains the CANopen Electronic Data Sheet for | |
; the KOLLMORGEN RGM C01 amplifier family. | |
; | |
; The EDS is a standard CANopen file format used to describe the | |
; device's object dictionary. It is used as part of the CANopen | |
; test tool. | |
[FileInfo] | |
CreatedBy=Daniel Tian; Kollmorgen Corp. | |
ModifiedBy=Daniel Tian; Kollmorgen Corp. |
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
; This file contains the CANopen Electronic Data Sheet for | |
; the KOLLMORGEN RGM C01 amplifier family. | |
; | |
; The EDS is a standard CANopen file format used to describe the | |
; device's object dictionary. It is used as part of the CANopen | |
; test tool. | |
[Comments] | |
lines=0 |
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
Script started on Wed Jul 12 11:53:45 2017 | |
]0;rishabh@robotik-dev-1: ~/host/repositories[01;32mrishabh@container robotik-dev-1[00m:[01;34m~/host/repositories[00m$ candump can0 | |
can0 000 [2] 82 03 | |
can0 703 [1] 00 | |
can0 603 [8] 2B 17 10 00 64 00 00 00 | |
can0 583 [8] 60 17 10 00 00 00 00 00 | |
can0 703 [1] 7F | |
can0 603 [8] 40 00 18 01 00 00 00 00 | |
can0 583 [8] 43 00 18 01 83 01 00 00 | |
can0 603 [8] 23 00 18 01 83 01 00 80 |
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
from numpy import linalg as la | |
def nearestPD(A): | |
"""Find the nearest positive-definite matrix to input | |
A Python/Numpy port of John D'Errico's `nearestSPD` MATLAB code [1], which | |
credits [2]. | |
[1] https://www.mathworks.com/matlabcentral/fileexchange/42885-nearestspd |
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
''' | |
This script saves each topic in a bagfile as a csv. | |
Accepts a filename as an optional argument. Operates on all bagfiles in current directory if no argument provided | |
Usage1 (for one bag file): | |
python bag2csv.py filename.bag | |
Usage 2 (for all bag files in current directory): | |
python bag2csv.py |
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
#include <math.h> | |
#include <iostream> | |
using namespace std; | |
float clip(float n, float lower, float upper) { | |
return std::max(lower, std::min(n, upper)); | |
} | |
int main() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/env python | |
import roslib | |
roslib.load_manifest("sensor_msgs") | |
roslib.load_manifest("message_filters") | |
roslib.load_manifest("rxtools") | |
import rospy | |
import rxtools | |
import rxtools.rosplot | |
import sys |
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/env python3 | |
#coding:utf-8 | |
# forked from http://www.cnblogs.com/babycool/p/4734819.html | |
''' | |
Python QRCode generator | |
- transform the input string to general QRCode image | |
- generate QRCode image with logo image |
NewerOlder