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

Add hand touch sensor input to touch event and converters #63

Conversation

kochigami
Copy link
Contributor

I tried my changes with
Nao (Naoqi version 2.1.4.13)
Pepper (Naoqi version 2.4.2.26).

I executed roslaunch naoqi_driver naoqi_driver.launch,
rostopic echo /naoqi_driver_node/hand_touch and touched Nao/ Pepper's hands.

The results are as follows:

hand: 3
state: 1

---
hand: 3
state: 0

---
hand: 5
state: 1

---

If there are any problems, please let me know.

@k-okada
Copy link
Member

k-okada commented Feb 8, 2016

@k-okada
Copy link
Member

k-okada commented Feb 8, 2016

LGTM

@kochigami
Copy link
Contributor Author

I forgot to add comma in boot_config.json file,
which causes some errors while running roslaunch naoqi_driver naoqi_driver.launch.

I modified it. Thank you very much for your reviewing.

@kochigami kochigami force-pushed the add-hand-touch-sensor-input-to-touch-programs branch 3 times, most recently from 53132b8 to d276fd1 Compare October 19, 2016 10:18
@kochigami
Copy link
Contributor Author

Hi, I resolved all conflicts.
Would you mind if I ask for checking and merging? Sorry for my trouble.

@kochigami kochigami force-pushed the add-hand-touch-sensor-input-to-touch-programs branch from d276fd1 to efc34a6 Compare October 19, 2016 10:22
Copy link
Member

@nlyubova nlyubova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@@ -80,6 +81,7 @@ class TouchEventRegister: public boost::enable_shared_from_this<TouchEventRegist
void touchCallback(std::string &key, qi::AnyValue &value, qi::AnyValue &message);
void touchCallbackMessage(std::string &key, bool &state, naoqi_bridge_msgs::Bumper &msg);
void touchCallbackMessage(std::string &key, bool &state, naoqi_bridge_msgs::TactileTouch &msg);
void touchCallbackMessage(std::string &key, bool &state, naoqi_bridge_msgs::HandTouch &msg);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you align it with the rest of the code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your comment.
I aligned it.

@@ -584,6 +584,7 @@ void Driver::registerDefaultConverter()

bool bumper_enabled = boot_config_.get( "converters.bumper.enabled", true);
bool tactile_enabled = boot_config_.get( "converters.tactile.enabled", true);
bool hand_enabled = boot_config_.get( "converters.hand.enabled", true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you align it with the rest of the code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your comment.
I aligned it, too.

@@ -29,6 +29,7 @@
*/
#include <naoqi_bridge_msgs/Bumper.h>
#include <naoqi_bridge_msgs/TactileTouch.h>
#include <naoqi_bridge_msgs/HandTouch.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for the nicktip: could you move this one line up for alphabetical order ? (same below). Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your comment.
I moved the line in alphabetical order.

@kochigami kochigami force-pushed the add-hand-touch-sensor-input-to-touch-programs branch from efc34a6 to 355c2f2 Compare October 24, 2016 02:19
Copy link
Member

@suryaambrose suryaambrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kochigami
Copy link
Contributor Author

memo:
Pepper: only reacts to right back and left back of HandTouch.msg

rostopic echo /pepper_robot/hand_touch 
hand: 3
state: 1
---
hand: 3
state: 0
---
hand: 0
state: 1
---
hand: 0
state: 0
---

Nao: reacts to right back/ right left/ right right/ left back/ left left/ left right (all types) of HandTouch.msg

rostopic echo /nao_robot/hand_touch 
hand: 3
state: 1
---
hand: 3
state: 0
---
hand: 4
state: 1
---
hand: 4
state: 0
---
hand: 5
state: 1
---
hand: 5
state: 0
---

I'll merge this. If there is any problem, please let me know. Sorry for my trouble.

@kochigami kochigami deleted the add-hand-touch-sensor-input-to-touch-programs branch November 7, 2016 03:02
michieletto pushed a commit to michieletto/naoqi_driver that referenced this pull request May 24, 2017
…input-to-touch-programs

Add hand touch sensor input to touch event and converters
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

Successfully merging this pull request may close these issues.

5 participants