-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add hand touch sensor input to touch event and converters #63
Conversation
please add
|
LGTM |
I forgot to add comma in boot_config.json file, I modified it. Thank you very much for your reviewing. |
53132b8
to
d276fd1
Compare
Hi, I resolved all conflicts. |
d276fd1
to
efc34a6
Compare
There was a problem hiding this 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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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.
efc34a6
to
355c2f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
memo:
Nao: reacts to right back/ right left/ right right/ left back/ left left/ left right (all types) of HandTouch.msg
I'll merge this. If there is any problem, please let me know. Sorry for my trouble. |
…input-to-touch-programs Add hand touch sensor input to touch event and converters
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:
If there are any problems, please let me know.