File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ elseif(${ROS_VERSION} EQUAL 1)
92
92
mqtt_client_interfaces
93
93
nodelet
94
94
roscpp
95
- rosfmt ## For fmt::format.
96
95
std_msgs
97
96
topic_tools
98
97
)
@@ -101,6 +100,9 @@ elseif(${ROS_VERSION} EQUAL 1)
101
100
find_package (PahoMqttCpp REQUIRED)
102
101
set (PahoMqttCpp_LIBRARIES PahoMqttCpp::paho-mqttpp3)
103
102
103
+ find_package (fmt REQUIRED)
104
+ set (fmt_LIBRARIES fmt::fmt)
105
+
104
106
105
107
## Uncomment this if the package has a setup.py. This macro ensures
106
108
## modules and global scripts declared therein get installed
@@ -194,7 +196,9 @@ elseif(${ROS_VERSION} EQUAL 1)
194
196
roscpp
195
197
std_msgs
196
198
topic_tools
197
- DEPENDS PahoMqttCpp
199
+ DEPENDS
200
+ fmt
201
+ PahoMqttCpp
198
202
)
199
203
200
204
###########
@@ -236,6 +240,7 @@ elseif(${ROS_VERSION} EQUAL 1)
236
240
## Specify libraries to link a library or executable target against
237
241
target_link_libraries (${PROJECT_NAME}
238
242
${catkin_LIBRARIES}
243
+ ${fmt_LIBRARIES}
239
244
${PahoMqttCpp_LIBRARIES}
240
245
)
241
246
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ SOFTWARE.
32
32
#include < memory>
33
33
#include < string>
34
34
35
+ #include < fmt/format.h>
35
36
#include < mqtt_client_interfaces/IsConnected.h>
36
37
#include < mqtt/async_client.h>
37
38
#include < nodelet/nodelet.h>
38
39
#include < ros/ros.h>
39
- #include < rosfmt/full.h> // fmt::format, fmt::join
40
40
#include < topic_tools/shape_shifter.h>
41
41
42
42
Original file line number Diff line number Diff line change 17
17
<author email =" bastian.lampe@rwth-aachen.de" >Bastian Lampe</author >
18
18
<author email =" christian.wende@rwth-aachen.de" >Christian Wende</author >
19
19
20
+ <depend >fmt</depend >
20
21
<depend >mqtt_client_interfaces</depend >
21
22
<depend >ros_environment</depend >
22
23
<depend >std_msgs</depend >
23
24
24
25
<!-- ROS2 -->
25
26
<buildtool_depend condition =" $ROS_VERSION == 2" >ament_cmake</buildtool_depend >
26
- <depend condition =" $ROS_VERSION == 2" >fmt</depend >
27
27
<depend condition =" $ROS_VERSION == 2" >libpaho-mqtt-dev</depend >
28
28
<depend condition =" $ROS_VERSION == 2" >libpaho-mqttpp-dev</depend >
29
29
<depend condition =" $ROS_VERSION == 2" >rclcpp</depend >
35
35
<depend condition =" $ROS_VERSION == 1" >nodelet</depend >
36
36
<depend condition =" $ROS_VERSION == 1" >paho-mqtt-cpp</depend >
37
37
<depend condition =" $ROS_VERSION == 1" >roscpp</depend >
38
- <depend condition =" $ROS_VERSION == 1" >rosfmt</depend >
39
38
<depend condition =" $ROS_VERSION == 1" >topic_tools</depend >
40
39
41
40
<export >
You can’t perform that action at this time.
0 commit comments