2
* Copyright (C) 2018 Open Source Robotics Foundation
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
8
* http://www.apache.org/licenses/LICENSE-2.0
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.
17
#ifndef IGNITION_GAZEBO_NETWORK_NETWORKROLE_HH_
18
#define IGNITION_GAZEBO_NETWORK_NETWORKROLE_HH_
20
#include <ignition/gazebo/config.hh>
21
#include <ignition/gazebo/Export.hh>
27
// Inline bracket to help doxygen filtering.
28
inline namespace IGNITION_GAZEBO_VERSION_NAMESPACE {
29
/// \brief Enumeration of roles that a network participant can take.
30
enum class NetworkRole
32
/// \brief participant has no role in the network
34
/// \brief participant is read-only, could potentially be used
35
/// for visualization or logging, but is not executing simulation.
37
/// This is reserved for future use.
39
/// \brief participant is simulation primary, it is responsible for
40
/// configuring simulation and assigning work to secondaries.
42
/// There will be only one simulation primary in a given distributed
44
SimulationPrimary = 2,
45
/// \brief participant is a simulation secondary, it receives work
46
/// from the simulation primary and executes.
47
SimulationSecondary = 3,
51
} // namespace ignition
53
#endif // IGNITION_GAZEBO_NETWORKROLE_HH_