-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainpage.dox
67 lines (55 loc) · 1.99 KB
/
mainpage.dox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
\mainpage
\htmlinclude manifest.html
\b games_vision
The games_vision package is made of different games for HRI based on vision.
games_vision uses loose dependency strategies to the following packages:
- etts
- gesture_player
- screen_msgs
- touch_skill
For more info, please check the Doxygen documentation of these packages.
\b touch_skill
There are several ways to use touch_skill:
* Using TouchListener (TouchListener.h):
#include "TouchListener.h"
class FooTouchListener : public TouchListener {
public:
//! the function that will be called when a touch event is recevied
void touch_cb() {
if (is_touched())
etts.sayTextNL("|en:Touched.|es:Tocado.");
else
etts.sayTextNL("|en:Released.|es:Soltado.");
if (is_touched_left_shoulder)
...
} // end touch_cb()
}; // end class FooTouchListener
* Loose dependency:
Using the small footprint "capacitive_touch" ROS node, on topic "capacitive_touch"
#include <std_msgs/String.h>
ros::NodeHandle nh_public;
//! fake touch publisher
ros::Publisher touch_pub;
touch_pub = nh_public.advertise<std_msgs::String>("capacitive_touch");
std_msgs::String msg;
msg.data = "left_shoulder";
pub.publish(msg);
//! touch subscriber
ros::Subscriber touch_sub;
touch_sub = nh_public.subscribe<std_msgs::String>("capacitive_touch", 1, touch_cb);
void touch_cb(const std_msgs::StringConstPtr & msg) {
if (msg->data == "left_shoulder")
...
} // end touch_cb()
\section codeapi Code API
<!--
Provide links to specific auto-generated API documentation within your
package that is of particular interest to a reader. Doxygen will
document pretty much every part of your code, so do your best here to
point the reader to the actual API.
If your codebase is fairly large or has different sets of APIs, you
should use the doxygen 'group' tag to keep these APIs together. For
example, the roscpp documentation has 'libros' group.
-->
*/