Connect to pepper with PEPPER Mac's python interpreter

Connect directly to pepper from your Mac without logging in with ssh

Overview

When you install Choregraphe, the SDK will be installed. Pass the SDK path through python before launching.

procedure

1. Create a shell script like the one below.

naoqi-console

#!/bin/bash

NAOQI_PATH=[Choregarphe.app path]/Contents/Resources/lib

#Pass the SDK path to python
export PYTHONPATH=${PYTHONPATH}:${NAOQI_PATH}
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${NAOQI_PATH}

/usr/bin/python

2. Run the shell script

sh naoqi-console

3. The python interpreter that has the path to sdk of naoqi starts.

$ sh naoqi-console 
Python 2.7.10 (default, Jul 14 2015, 19:46:27) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

4. OK if you can import the naoqi module

>>> import naoqi

that's all

Recommended Posts

Connect to pepper with PEPPER Mac's python interpreter
Connect to BigQuery with Python
Connect to Wikipedia with Python
Debug with PEPPER python interpreter
Connect to MySQL with Python within Docker
Connect to s3 with AWS Lambda Python
Connect python to mysql
Connect to MySQL with Python on Raspberry Pi
Post to slack with Python 3
Connect to Postgresql with GO
Connect to sqlite from python
Switch python to 2.7 with alternatives
Write to csv with Python
Connect Raspberry Pi to Alibaba Cloud IoT Platform with Python
Python: How to use async with
Link to get started with python
Connect to multiple databases with SQLAlchemy
[Python] Write to csv file with Python
Create folders from '01' to '12' with python
Nice to meet you with python
Try to operate Facebook with Python
Output to csv file with Python
Convert list to DataFrame with python
MP3 to WAV conversion with Python
To do tail recursion with Python2
Connect to utf8mb4 database from python
What to do with PYTHON release?
Connect to Bitcoin Testnet with Pycoin
Unable to install Python with pyenv
How to use FTP with Python
Connect to Elastic MQ with boto
How to calculate date with python
Easily post to twitter with Python 3
I want to debug with Python
How to connect to Cloud Firestore from Google Cloud Functions with python code
Try logging in to qiita with Python
Change Python 64bit environment to 32bit environment with Anaconda
English speech recognition with python [speech to text]
Convert memo at once with Python 2to3
HTML email with image to send with python
How to read pydoc on python interpreter
Memo to ask for KPI with python
Python to remember only with hello, worlds
Output color characters to pretty with python
Introduction to Python Image Inflating Image inflating with ImageDataGenerator
Convert Excel data to JSON with python
Convert Hiragana to Romaji with Python (Beta)
Fractal to make and play with Python
I wanted to solve ABC160 with Python
How to work with BigQuery in Python
[Introduction to Python] Let's use foreach with Python
Single pixel camera to experience with Python
[Python] Introduction to CNN with Pytorch MNIST
Convert FX 1-minute data to 5-minute data with Python
I want to analyze logs with Python
How to do portmanteau test with python
I want to play with aws with python
How to display python Japanese with lolipop
Trying to handle SQLite3 with Python [Note]
Connect with mysql.connector with ssh tunnel in Python 3.7
[Part1] Scraping with Python → Organize to csv!