Skip to content

Instantly share code, notes, and snippets.

@KobayashiRui
KobayashiRui / c_sample.cpp
Last active December 31, 2022 05:10
c++でpython.hをincludeすることでpythonで作成した関数をc++側で使用することができる. 日本語でpython3.6について簡単に説明しているところが少なかったためまとめる.
#include<stdio.h>
#include<Python.h>
#include<string>
#include<iostream>
int main(){
PyObject *pName,*pModule, *pTmp, *pFunc;
char *sTmp;
int data;
@KobayashiRui
KobayashiRui / ROS_PS3contl.md
Last active May 6, 2024 12:37
rosやgazeboについて自分に有益なものをまとめる 参考文献 ・ROSではじめるロボットプログラミング ・プログラミングROS 参考サイト ・https://sites.google.com/site/robotlabo/time-tracker/ros/modeling_robothttp://products.rt-net.jp/micromouse/archives/3316http://wiki.ros.org/simmechanics_to_urdf/Tutorials/

PS3コントローラーの使い方(ubuntu16.04)

  1. USBでPCと接続する
  2. sudo sixpairを実行しペアリングをする
  3. USBとPCから取外す
  4. sudo sixad -sを実行しPS3の真ん中のボタンを押しBluetoothにて接続する