$darkmode
lua_types.hpp
1 /*
2  * Copyright 2023 Robert Bosch GmbH
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * SPDX-License-Identifier: Apache-2.0
17  */
22 #pragma once
23 
24 #include <cloe/data_broker.hpp>
25 
26 #include <Eigen/Dense>
27 
28 #include <cloe/component/wheel.hpp>
29 
30 namespace cloe {
31 namespace utility {
32 
33 extern void register_lua_types(cloe::DataBroker& db);
34 
35 extern void register_gaspedal_sensor(DataBroker& db, const std::string& vehicle,
36  std::function<const double&()> gaspedal_getter);
37 extern void register_wheel_sensor(DataBroker& db,
38  const std::string& vehicle,
39  const std::string& wheel_name,
40  std::function<const ::cloe::Wheel&()>
41  wheel_getter);
42 
43 } // namespace utility
44 } // namespace cloe
Definition: data_broker.hpp:1217