Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I get touch sensor topic #10

Closed
k-okada opened this issue Oct 1, 2015 · 4 comments
Closed

how can I get touch sensor topic #10

k-okada opened this issue Oct 1, 2015 · 4 comments

Comments

@k-okada
Copy link
Member

k-okada commented Oct 1, 2015

It seems the pepper robot has multiple touch sensors on head and arms, how can we get this as ros topic?

@kochigami
Copy link
Contributor

I could understand how ALTouch proxy deals with touch related topics, but I couldn't know how to add codes to new naoqi_driver.

Touch data are published as events in NAOqi.
ALMemoryProxy::subscribeToEvent(event name, callbackModule, callback Method(= callback function)) starts raising event.
ALMemoryProxy::unsubscribeToEvent(event name, callbackModule) stops rasing event.

When event is subscribed, sensor data are stored and topic is published in callback function.
Unfortunately, I haven't found these functions in codes yet...

Useful event names:

Bumpers:
RightBumperPressed
LeftBumperPressed
BackBumperPressed (it is not described in documentation, but I could use it before)

Head Sensors:
FrontTactilTouched
MiddleTactileTouched
RearTactileTouched

Hand Sensors:
HandRightBackTouched
HandRightLeftTouched
HandRightRightTouched
HandLeftBackTouched
HandRightLeftTouched
HandRightRightTouched

In addition, I think some msgs in naoqi_bridge_msgs are required to modify or create:

  1. Bumper.msg -> add back=2 (for Pepper)
  2. add HandTouch.msg

Referenced documentation: NAOqi 2.3 documentation ALTouch, python code nao_apps/nodes/nao_tactile.py

@k-okada
Copy link
Member Author

k-okada commented Oct 14, 2015

I'm working on this issue at ros-naoqi/naoqi_driver#48, but unfortunatelly I have trouble reading data....

@suryaambrose
Copy link
Member

I think this has been partially solved by ros-naoqi/naoqi_driver#49 and is about to be totally solved by ros-naoqi/naoqi_driver#63 right ?

@victorpaleologue
Copy link
Contributor

I think we're good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants