Git Product home page Git Product logo

basic_head_api's Introduction

basic_head_api

Allows to use static expressions with the intensity level. Used to define and control visimes

Dependencies

Requires:

  • hansonrobotics/ros_pololu_servo
  • dynamixel-msgs
  • hansonrobotics/pau2motors

Configuration

Uses following params from param server (within same namespace) for configuration:

Running

rosrun basic_head_api head_ctrl.py

Listens to topics:

  • make_face_expr for msg MakeFaceExpr.msg (e.g. ["happy", 0.7]) that will trigger the requested PAU face expression to be sent to cmd_face_pau.

  • point_head for msg PointHead.msg (e.g. [0.785, 0.0, 0.0] to turn the head 45 deg (0.785 rad) to the side) that will build and send a head rotation msg in quaternion format to cmd_neck_pau. DEPRECIATED

Provided services:

  • Call /valid_face_exprs with ValidFaceExprs.srv to request available face expression strings for use in MakeFaceExpr.msg.

Copyright (c) 2016-2018 Hanson Robotics, Ltd. All rights reserved.

basic_head_api's People

Contributors

anyrobot avatar des256 avatar linas avatar rlui1 avatar vytasrgl avatar wenwei-dev avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

basic_head_api's Issues

ImportError: No module named ros_pololu_servo.msg

When I try to run this, it crashes:

rosrun basic_head_api head_ctrl.py
Traceback (most recent call last):
  File "/home/linas/src/novamente/hanson/src/hr/basic_head_api/src/head_ctrl.py", line 6, in <module>
    import FaceExpr
  File "/home/linas/src/novamente/hanson/src/hr/basic_head_api/src/FaceExpr.py", line 2, in <module>
    from MotorCmder import MotorCmder
  File "/home/linas/src/novamente/hanson/src/hr/basic_head_api/src/MotorCmder.py", line 1, in <module>
    from ros_pololu_servo.msg import servo_pololu
ImportError: No module named ros_pololu_servo.msg

When I look at the sources, I see that there is no such message: it was deleted long ago, by Jamie Diprose. The available messages are currently:

MotorCalibration.msg MotorCommand.msg MotorStateList.msg MotorState.msg

To be clear: the core issue is the the hanson robotics fork of ros_pololu_servo was never merged back into mainline, and mainline then changed in an incompatible way ...

request for comment

Vytai,

You may call me an idiot for doing this .. but: I am trying to staple eva_behavior onto either blender_api or onto robo_blender. I notice that eva_behavior generates messages that this node seems to listen to, and NOT messages that robo_blender listens to.

So, just so that I can play with eva_behavior for a while, I am going to add a shim that converts these messages into the old-style arther robo_blender messages. That is, when the /make_coupled_face_expr is received, it will publish the /cmd_exprssions that robo_blender wants. I think this is a reasonable thing to do ... but ... is there some easier way? Is there some existing node that already does this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.