File tree 4 files changed +6
-7
lines changed
crane_local_planner/include/crane_local_planner
crane_world_model_publisher/src
session/crane_session_controller/src
4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ class GridMapPlanner
119
119
}
120
120
Vector2 ball_vel_unit = world_model->ball .vel .normalized () * MAP_RESOLUTION;
121
121
Point ball_pos = world_model->ball .pos ;
122
- double time = 0.0 ;
122
+ float time = 0 .f ;
123
123
const double TIME_STEP = MAP_RESOLUTION / world_model->ball .vel .norm ();
124
124
map[" ball_time" ].setConstant (100.0 );
125
125
for (int i = 0 ; i < 100 ; ++i) {
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ class RobotReceiverNode : public rclcpp::Node
230
230
std::make_shared<MulticastReceiver>(config.ip , config.port ));
231
231
}
232
232
233
- using std::chrono_literals:: ms;
233
+ using std::chrono:: operator " " ms;
234
234
timer = create_wall_timer (10ms, [&]() {
235
235
crane_msgs::msg::RobotFeedbackArray msg;
236
236
for (auto & receiver : receivers) {
Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ WorldModelPublisherComponent::WorldModelPublisherComponent(
27
27
pub_world_model =
28
28
create_publisher<crane_msgs::msg::WorldModel>(" /world_model" , 1 );
29
29
30
- using std::chrono_literals;
31
-
30
+ using std::chrono::operator " " ms;
32
31
timer = this ->create_wall_timer (16ms, [this ]() {
33
32
if (has_vision_updated && has_geometry_updated) {
34
33
publishWorldModel ();
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ SessionControllerComponent::SessionControllerComponent(
23
23
/*
24
24
* 各セッションの設定の読み込み
25
25
*/
26
- using std::filesystem : path;
26
+ using std::filesystem:: path;
27
27
auto session_config_dir = path (ament_index_cpp::get_package_share_directory (
28
28
" crane_session_controller" )) /
29
29
" config" / " play_situation" ;
@@ -56,7 +56,7 @@ SessionControllerComponent::SessionControllerComponent(
56
56
};
57
57
58
58
std::cout << " ----------------------------------------" << std::endl;
59
- using std::filesystem : directory_iterator;
59
+ using std::filesystem:: directory_iterator;
60
60
for (auto & path : directory_iterator (session_config_dir)) {
61
61
if (path.is_directory ()) {
62
62
for (auto & sub_path : directory_iterator (path.path ())) {
@@ -114,7 +114,7 @@ SessionControllerComponent::SessionControllerComponent(
114
114
}
115
115
});
116
116
117
- using std::chrono_literals ;
117
+ using std::chrono:: operator " " ms ;
118
118
timer = create_wall_timer (100ms, [&]() {
119
119
auto it = event_map.find (play_situation.getSituationCommandText ());
120
120
if (it != event_map.end ()) {
You can’t perform that action at this time.
0 commit comments