Skip to content

Commit

Permalink
fix up problem with EBO_simulado
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarbech committed Apr 11, 2019
1 parent 4028650 commit fe9eb16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion learnbot_dsl/Clients/EBO.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ICEs = ["Laser.ice", "DifferentialRobot.ice", "JointMotor.ice", "EmotionalMotor.ice", "GenericBase.ice"]
icePaths = []

icePaths.append(PATHINTERFACES)
icePaths.append()PATHINTERFACES
for ice in ICEs:
for p in icePaths:
if os.path.isfile(os.path.join(p, ice)):
Expand Down
10 changes: 6 additions & 4 deletions learnbot_dsl/Clients/EBO_simulado.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from PIL import Image, ImageDraw
from random import randint
from learnbot_dsl import path as Learnblock_Path
from learnbot_dsl import PATHINTERFACES



Expand All @@ -19,7 +20,7 @@

ICEs = ["Laser.ice", "DifferentialRobot.ice", "JointMotor.ice", "Display.ice", "RGBD.ice", "GenericBase.ice"]
icePaths = []
icePaths.append("/home/ivan/robocomp/components/learnbot/learnbot_dsl/interfaces")
icePaths.append(PATHINTERFACES)
for ice in ICEs:
for p in icePaths:
if os.path.isfile(os.path.join(p, ice)):
Expand Down Expand Up @@ -271,9 +272,9 @@ def connectToRobot(self):

self.differentialrobot_proxy = connectComponent("differentialrobot:tcp -h localhost -p 10004",
RoboCompDifferentialRobot.DifferentialRobotPrx)
self.jointmotor_proxy = connectComponent("jointmotor:tcp -h localhost -p 10067",
self.jointmotor_proxy = connectComponent("jointmotor:tcp -h localhost -p 20000",
RoboCompJointMotor.JointMotorPrx)
self.display_proxy = connectComponent("emotionalmotor:tcp -h localhost -p 30001",
self.display_proxy = connectComponent("display:tcp -h localhost -p 30000",
RoboCompDisplay.DisplayPrx)
self.rgbd_proxy = connectComponent("rgbd:tcp -h localhost -p 10097", RoboCompRGBD.RGBDPrx)

Expand All @@ -284,6 +285,7 @@ def connectToRobot(self):
if os.path.splitext(path)[1] == ".json":
with open(os.path.join(imgPaths, "emotionConfig", path), "r") as f:
self.configEmotions[os.path.splitext(path)[0]] = json.loads(f.read())
self.face.start()

def deviceReadLaser(self):
usList = []
Expand Down Expand Up @@ -324,7 +326,7 @@ def deviceSendEmotion(self, _emotion):
def deviceSendAngleHead(self, _angle):
goal = RoboCompJointMotor.MotorGoalPosition()
goal.name = 'servo'
goal.position = _angle
goal.position = -_angle
self.jointmotor_proxy.setPosition(goal)


Expand Down

0 comments on commit fe9eb16

Please sign in to comment.