Skip to content

Commit fa428cf

Browse files
authored
Merge pull request #257 from ROBOTIS-GIT/develop
Develop
2 parents dd344c4 + 24156d4 commit fa428cf

File tree

11 files changed

+461
-27
lines changed

11 files changed

+461
-27
lines changed

.travis.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ notifications:
1111
on_success: change
1212
on_failure: always
1313
recipients:
14-
- kkw@robotis.com
15-
- chc@robotis.com
16-
- pyo@robotis.com
17-
- akh@robotis.com
14+
- willson@robotis.com
1815

1916
branches:
2017
only:
2118
- master
19+
- develop

arduino/opencr_arduino/opencr/libraries/turtlebot3/examples/turtlebot3_burger/turtlebot3_core/turtlebot3_core_config.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,15 @@
1818

1919
#ifndef TURTLEBOT3_CORE_CONFIG_H_
2020
#define TURTLEBOT3_CORE_CONFIG_H_
21+
// #define NOETIC_SUPPORT //uncomment this if writing code for ROS1 Noetic
2122

2223
#include <ros.h>
2324
#include <ros/time.h>
2425
#include <std_msgs/Bool.h>
2526
#include <std_msgs/Empty.h>
2627
#include <std_msgs/Int32.h>
27-
#include <sensor_msgs/Imu.h>
2828
#include <sensor_msgs/JointState.h>
29-
#include <sensor_msgs/BatteryState.h>
30-
#include <sensor_msgs/MagneticField.h>
3129
#include <geometry_msgs/Vector3.h>
32-
#include <geometry_msgs/Twist.h>
3330
#include <tf/tf.h>
3431
#include <tf/transform_broadcaster.h>
3532
#include <nav_msgs/Odometry.h>
@@ -43,7 +40,7 @@
4340

4441
#include <math.h>
4542

46-
#define FIRMWARE_VER "1.2.3"
43+
#define FIRMWARE_VER "1.2.6"
4744

4845
#define CONTROL_MOTOR_SPEED_FREQUENCY 30 //hz
4946
#define CONTROL_MOTOR_TIMEOUT 500 //ms
@@ -168,7 +165,11 @@ sensor_msgs::JointState joint_states;
168165
ros::Publisher joint_states_pub("joint_states", &joint_states);
169166

170167
// Battey state of Turtlebot3
168+
#if defined NOETIC_SUPPORT
169+
sensor_msgs::BatteryStateNoetic battery_state_msg;
170+
#else
171171
sensor_msgs::BatteryState battery_state_msg;
172+
#endif
172173
ros::Publisher battery_state_pub("battery_state", &battery_state_msg);
173174

174175
// Magnetic field

arduino/opencr_arduino/opencr/libraries/turtlebot3/examples/turtlebot3_waffle/turtlebot3_core/turtlebot3_core_config.h

+2-5
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,15 @@
1818

1919
#ifndef TURTLEBOT3_CORE_CONFIG_H_
2020
#define TURTLEBOT3_CORE_CONFIG_H_
21+
// #define NOETIC_SUPPORT //uncomment this if writing code for ROS1 Noetic
2122

2223
#include <ros.h>
2324
#include <ros/time.h>
2425
#include <std_msgs/Bool.h>
2526
#include <std_msgs/Empty.h>
2627
#include <std_msgs/Int32.h>
27-
#include <sensor_msgs/Imu.h>
2828
#include <sensor_msgs/JointState.h>
29-
#include <sensor_msgs/BatteryState.h>
30-
#include <sensor_msgs/MagneticField.h>
3129
#include <geometry_msgs/Vector3.h>
32-
#include <geometry_msgs/Twist.h>
3330
#include <tf/tf.h>
3431
#include <tf/transform_broadcaster.h>
3532
#include <nav_msgs/Odometry.h>
@@ -43,7 +40,7 @@
4340

4441
#include <math.h>
4542

46-
#define FIRMWARE_VER "1.2.3"
43+
#define FIRMWARE_VER "1.2.6"
4744

4845
#define CONTROL_MOTOR_SPEED_FREQUENCY 30 //hz
4946
#define CONTROL_MOTOR_TIMEOUT 500 //ms

arduino/opencr_arduino/opencr/libraries/turtlebot3/examples/turtlebot3_with_open_manipulator/turtlebot3_with_open_manipulator_core/turtlebot3_with_open_manipulator_core_config.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#ifndef TURTLEBOT3_WITH_OPEN_MANIPULATOR_CORE_CONFIG_H_
2020
#define TURTLEBOT3_WITH_OPEN_MANIPULATOR_CORE_CONFIG_H_
21+
// #define NOETIC_SUPPORT //uncomment this if writing code for ROS1 Noetic
2122

2223
#include <ros.h>
2324
#include <ros/time.h>
@@ -26,10 +27,7 @@
2627
#include <std_msgs/Int32.h>
2728
#include <std_msgs/Float64.h>
2829
#include <std_msgs/Float64MultiArray.h>
29-
#include <sensor_msgs/Imu.h>
3030
#include <sensor_msgs/JointState.h>
31-
#include <sensor_msgs/BatteryState.h>
32-
#include <sensor_msgs/MagneticField.h>
3331
#include <geometry_msgs/Vector3.h>
3432
#include <geometry_msgs/Twist.h>
3533
#include <tf/tf.h>
@@ -45,7 +43,7 @@
4543

4644
#include <math.h>
4745

48-
#define FIRMWARE_VER "2.0.1"
46+
#define FIRMWARE_VER "2.0.2"
4947

5048
#define CONTROL_MOTOR_SPEED_FREQUENCY 30 //hz
5149
#define IMU_PUBLISH_FREQUENCY 200 //hz

arduino/opencr_arduino/opencr/libraries/turtlebot3/include/turtlebot3/turtlebot3_sensor.h

+11-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@
2222
#include <IMU.h>
2323

2424
#include <sensor_msgs/Imu.h>
25-
#include <sensor_msgs/BatteryState.h>
2625
#include <sensor_msgs/MagneticField.h>
2726

27+
#if defined NOETIC_SUPPORT
28+
#include <sensor_msgs/BatteryStateNoetic.h>
29+
#else
30+
#include <sensor_msgs/BatteryState.h>
31+
#endif
32+
2833
#include "OLLO.h"
2934

3035
#define ACCEL_FACTOR 0.000598550415 // (ADC_Value / Scale) * 9.80665 => Range : +- 2[g]
@@ -98,7 +103,11 @@ class Turtlebot3Sensor
98103
void setLedPattern(double linear_vel, double angular_vel);
99104
private:
100105
sensor_msgs::Imu imu_msg_;
101-
sensor_msgs::BatteryState battery_state_msg_;
106+
#if defined NOETIC_SUPPORT
107+
sensor_msgs::BatteryStateNoetic battery_state_msg_;
108+
#else
109+
sensor_msgs::BatteryState battery_state_msg_;
110+
#endif
102111
sensor_msgs::MagneticField mag_msg_;
103112

104113
cIMU imu_;

arduino/opencr_arduino/opencr/libraries/turtlebot3/src/turtlebot3/turtlebot3_sensor.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ bool Turtlebot3Sensor::init(void)
3838

3939
uint8_t get_error_code = 0x00;
4040

41+
#if defined NOETIC_SUPPORT
42+
battery_state_msg_.temperature = NAN;
43+
#endif
44+
4145
battery_state_msg_.current = NAN;
4246
battery_state_msg_.charge = NAN;
4347
battery_state_msg_.capacity = NAN;

arduino/opencr_arduino/opencr/libraries/turtlebot3_ros_lib/sensor_msgs/BatteryState.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,4 @@ namespace sensor_msgs
323323
};
324324

325325
}
326-
#endif
326+
#endif

0 commit comments

Comments
 (0)