Skip to content

Commit 7d43626

Browse files
committed
join learnbot-dsl package and learnbot-component package
1 parent 55b7c27 commit 7d43626

3 files changed

Lines changed: 127 additions & 41 deletions

File tree

learnbot_dsl/__init__.py

Whitespace-only changes.

learnbot_dsl/description.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# learnbot-dsl
2+
3+
This project has been designed as a tool to learn different topics, like programing, logic, math, emotions, physic, robotic, ...
4+
5+
The methodology used to teach this knowledges is the following:
6+
The kids make programs, with a IDE (Learnblock) this programs and this programs control a smal robot (EBO).
7+
8+
## Learnblock
9+
10+
This program is the main. It is here where the kids make his/her programs. This programs can be created with language similar to scratch, that is to say, using blocks.
11+
12+
## EBO
13+
14+
EBO is a smal robot, that run some components that ofert interfaces to control it.
15+
16+
## How to Install learnbot-dsl?
17+
18+
For install learnbot-dsl first is necessary install some depencies:
19+
20+
### Step 1: Install Robocomp
21+
22+
For install robocomp you should do the steps descrip on here:
23+
24+
[https://github.com/robocomp/robocomp](https://github.com/robocomp/robocomp)
25+
26+
### Step 2: Install Apriltag
27+
28+
For install apriltag you should run the follow command:
29+
30+
git clone https://github.com/ibarbech/apriltag
31+
cd apriltag
32+
mkdir build
33+
cmake ..
34+
make -j4
35+
sudo make install
36+
cd ..
37+
cd python
38+
sudo python setup.py install
39+
40+
### Step 3: Install learnbot-dsl
41+
42+
For install learnbot-dsl you should run the follow command:
43+
44+
pip install learnbot-dsl

setup.py

Lines changed: 83 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,89 @@
11
from setuptools import setup, find_packages
2-
import os
2+
import os,sys
33

44
def read(fname):
55
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
66
return f.read()
7-
exclude=[]
87

9-
setup(name="learnbot_components",
10-
version="0.0.3",
11-
description="learnbot_components contains some components to install in learnbot robot.",
12-
author="Ivan Barbecho",
13-
author_email="ivanbd@unex.es",
14-
url="https://github.com/robocomp/learnbot/tree/version-2-component-pip",
15-
license="GPL",
16-
scripts=[
17-
'learnbot_components/baserobot/src/baserobot.py',
18-
'learnbot_components/camera/camera.py',
19-
'learnbot_components/display/src/display.py',
20-
'learnbot_components/emotionalMotor/src/emotionalMotor.py',
21-
'learnbot_components/jointMotor/src/jointMotor.py',
22-
'learnbot_components/laser/src/laser.py',
23-
],
24-
packages=find_packages(exclude=exclude),
25-
include_package_data=True,
26-
package_data={'':["*"]},
27-
zip_safe=False,
28-
long_description=read('learnbot_components/description.md'),
29-
long_description_content_type='text/markdown',
30-
install_requires=[
31-
'matplotlib==2.2.2',
32-
'opencv_python_headless==3.4.3.18',
33-
'scipy==1.0.0',
34-
'tensorflow==1.10.1',
35-
'pandas==0.19.1',
36-
'Keras==2.0.5',
37-
'h5py==2.7.0',
38-
'epitran==0.4',
39-
'numpy==1.13.3',
40-
'Adafruit-PCA9685==1.0.1',
41-
'ice==0.0.2',
42-
'PySide==1.2.4',
43-
'paho_mqtt==1.4.0',
44-
'picamera==1.13',
45-
'wiringpi==2.46.0',
46-
'wiringpi2==2.32.3'],
47-
)
8+
if sys.version_info[0] == 2:
9+
setup(name="learnbot_dsl",
10+
version="0.1.19",
11+
description="Learnblock is a IDE for program learnbot using blocks",
12+
author="Ivan Barbecho",
13+
author_email="ivanbd@unex.es",
14+
url="https://github.com/robocomp/learnbot",
15+
license="GPL",
16+
scripts=[
17+
'learnbot_dsl/learnbotCode/Learnblock',
18+
'learnbot_dsl/components/apriltag/src/aprilTag.py',
19+
'learnbot_dsl/components/emotionrecognition2/src/emotionrecognition2.py'],
20+
packages=find_packages(where=".", exclude=['learnbot_components*']),
21+
include_package_data=True,
22+
package_data={'':["*"], 'learnbot_dsl':["*", "interfaces/*","*.md"]},
23+
zip_safe=False,
24+
long_description=read('learnbot_dsl/description.md'),
25+
long_description_content_type='text/markdown',
26+
install_requires=[
27+
"requests",
28+
"pyunpack",
29+
"patool",
30+
"opencv-python-headless==3.4.3.18",
31+
# 'numpy==1.14.5',
32+
'matplotlib==2.2.2',
33+
# 'pyparsing==2.0.3',
34+
'imutils==0.5.1',
35+
'six==1.10.0',
36+
'scipy==1.0.0',
37+
'tensorflow==1.10.1',
38+
'dlib==19.13.1',
39+
'pandas==0.19.1',
40+
'paramiko==2.4.1',
41+
'Keras==2.0.5',
42+
'h5py==2.7.0',
43+
'epitran==0.4',
44+
# 'zeroc-ice==3.6.0',
45+
'Pillow==5.3.0',
46+
# 'PySide',
47+
'GitPython==2.1.11',
48+
'paho_mqtt==1.4.0'],
49+
)
50+
elif sys.version_info[0] == 3:
51+
setup(name="learnbot_components",
52+
version="0.0.3",
53+
description="learnbot_components contains some components to install in learnbot robot.",
54+
author="Ivan Barbecho",
55+
author_email="ivanbd@unex.es",
56+
url="https://github.com/robocomp/learnbot/tree/version-2-component-pip",
57+
license="GPL",
58+
scripts=[
59+
'learnbot_components/baserobot/src/baserobot.py',
60+
'learnbot_components/camera/camera.py',
61+
'learnbot_components/display/src/display.py',
62+
'learnbot_components/emotionalMotor/src/emotionalMotor.py',
63+
'learnbot_components/jointMotor/src/jointMotor.py',
64+
'learnbot_components/laser/src/laser.py',
65+
],
66+
packages=find_packages(where=".", exclude=['learnbot_dsl*']),
67+
include_package_data=True,
68+
package_data={'':["*"]},
69+
zip_safe=False,
70+
long_description=read('learnbot_components/description.md'),
71+
long_description_content_type='text/markdown',
72+
install_requires=[
73+
'matplotlib==2.2.2',
74+
'opencv_python_headless==3.4.3.18',
75+
'scipy==1.0.0',
76+
'tensorflow==1.10.1',
77+
'pandas==0.19.1',
78+
'Keras==2.0.5',
79+
'h5py==2.7.0',
80+
'epitran==0.4',
81+
'numpy==1.13.3',
82+
'Adafruit-PCA9685==1.0.1',
83+
'ice==0.0.2',
84+
'PySide==1.2.4',
85+
'paho_mqtt==1.4.0',
86+
'picamera==1.13',
87+
'wiringpi==2.46.0',
88+
'wiringpi2==2.32.3'],
89+
)

0 commit comments

Comments
 (0)