ChangeStateRequest.cpp
Go to the documentation of this file.
1 #include "ChangeStateRequest.h"
2 
4 {
5  ChangeStateRequest::ChangeStateRequest(std::uint16_t slaveIndex,
6  EtherCATState state,
7  bool validate,
8  EtherCATState* actualState) :
9  slaveIndex(slaveIndex), state(state), validate(validate), actualState(actualState)
10  {
11  }
12 
13  void
15  {
16  if (actualState)
17  {
18  *actualState = state;
19  }
20  }
21 } // namespace armarx::control::ethercat
armarx::control::ethercat::ChangeStateRequest::state
EtherCATState state
Definition: ChangeStateRequest.h:28
armarx::control::ethercat::EtherCATState
This class is a wrapper around an enum containing the different EtherCAT states.
Definition: EtherCATState.h:25
armarx::control::ethercat::ChangeStateRequest::ChangeStateRequest
ChangeStateRequest()=default
ChangeStateRequest.h
armarx::control::ethercat
Definition: Bus.cpp:24
armarx::control::ethercat::ChangeStateRequest::setActualState
void setActualState(EtherCATState state)
Definition: ChangeStateRequest.cpp:14
armarx::navigation::client::validate
void validate(const std::vector< WaypointTarget > &path)
Definition: ice_conversions.h:70