Revision c06735bb
ID | c06735bb88dabe4b24ed45d57ea52b9a5329bec0 |
Removed headers, sonar uses custom timestamp, added code to manually update timestamp
scout/buttons/msg/button_event.msg | ||
---|---|---|
1 |
Header header |
|
2 | 1 |
bool button1_pressed |
3 | 2 |
bool button2_pressed |
scout/cliffsensor/msg/cliff_status_changed.msg | ||
---|---|---|
1 |
Header header |
|
2 | 1 |
int8 front_raw |
3 | 2 |
int8 left_raw |
4 | 3 |
int8 right_raw |
scout/headlights/msg/set_headlights.msg | ||
---|---|---|
1 |
Header header |
|
2 | 1 |
int16 left_red |
3 | 2 |
int16 left_green |
4 | 3 |
int16 left_blue |
scout/libscout/src/SonarControl.cpp | ||
---|---|---|
87 | 87 |
|
88 | 88 |
readings[msg->pos] = msg->distance0; |
89 | 89 |
readings[msg->pos + 24] = msg->distance1; |
90 |
timestamps[msg->pos] = msg->header.stamp;
|
|
91 |
timestamps[msg->pos + 24] = msg->header.stamp;
|
|
90 |
timestamps[msg->pos] = msg->stamp; |
|
91 |
timestamps[msg->pos + 24] = msg->stamp; |
|
92 | 92 |
} |
93 | 93 |
|
94 | 94 |
/** |
scout/motors/msg/set_motors.msg | ||
---|---|---|
1 |
Header header |
|
2 |
|
|
3 | 1 |
# Set these to true if the motor should be updated |
4 | 2 |
bool fl_set |
5 | 3 |
bool fr_set |
scout/power/msg/power_state_changed.msg | ||
---|---|---|
1 |
Header header |
|
2 | 1 |
#32-bit integer with current voltage info |
3 | 2 |
uint32 voltage |
4 | 3 |
#power percentage [0-100] |
scout/scoutsim/src/scout.cpp | ||
---|---|---|
354 | 354 |
msg.pos = sonar_position; |
355 | 355 |
msg.distance0 = d_front; |
356 | 356 |
msg.distance1 = d_back; |
357 |
msg.stamp = ros::Time::now(); |
|
357 | 358 |
|
358 | 359 |
sonar_pub.publish(msg); |
359 | 360 |
|
scout/sonar/msg/sonar_distance.msg | ||
---|---|---|
1 | 1 |
# Gives a timestamp so nodes make sure they use current readings |
2 |
Header header
|
|
2 |
time stamp
|
|
3 | 3 |
|
4 | 4 |
# Position of the sonar (0-23), where 0 is right |
5 | 5 |
int8 pos |
scout/usb_serial/msg/serial_data.msg | ||
---|---|---|
1 |
Header header |
|
2 |
|
|
3 | 1 |
# Change later based on the kind of data we actually have |
4 | 2 |
int32 data |
scout_avr/src/main.cpp | ||
---|---|---|
131 | 131 |
range_msg.pos = step_get_pos(); |
132 | 132 |
range_msg.distance0 = ranges[0]; |
133 | 133 |
range_msg.distance1 = ranges[1]; |
134 |
range_msg.stamp = nh.now(); |
|
134 | 135 |
range_pub.publish(&range_msg); |
135 | 136 |
} |
136 | 137 |
|
Also available in: Unified diff