41 enum class FETState { kUnknown = 0, kOn = 1, kOff = 2 };
42 enum class RunState { kUnknown = 0, kControlOn = 1, kControlOff = 2 };
43 enum class InitializationState { kUnknown = 0, kInitialized = 1, kUninitialized = 2 };
48 FETState fet_state{FETState::kUnknown};
49 RunState run_state{RunState::kUnknown};
50 InitializationState init_state{InitializationState::kUnknown};
52 uint32_t motor_type{};
53 uint64_t motor_state{};
61 double target_position{0.};
62 double target_velocity{0.};
63 uint32_t target_feedback_gain{10};
64 double target_feedforward_torque{0.};
101 std::vector<PowerState> power_states{};
103 std::vector<EMOState> emo_states{};
105 std::array<JointState, T::kRobotDOF> joint_states{};
107 ToolFlangeState tool_flange_right;
108 ToolFlangeState tool_flange_left;
110 FTSensorData ft_sensor_right;
111 FTSensorData ft_sensor_left;
114 Eigen::Vector<bool, T::kRobotDOF> is_ready{Eigen::Vector<bool, T::kRobotDOF>::Constant(
false)};
115 Eigen::Vector<double, T::kRobotDOF> position{Eigen::Vector<double, T::kRobotDOF>::Zero()};
116 Eigen::Vector<double, T::kRobotDOF> velocity{Eigen::Vector<double, T::kRobotDOF>::Zero()};
117 Eigen::Vector<double, T::kRobotDOF> current{Eigen::Vector<double, T::kRobotDOF>::Zero()};
118 Eigen::Vector<double, T::kRobotDOF> torque{Eigen::Vector<double, T::kRobotDOF>::Zero()};
121 Eigen::Vector<double, T::kRobotDOF> target_position{Eigen::Vector<double, T::kRobotDOF>::Zero()};
122 Eigen::Vector<double, T::kRobotDOF> target_velocity{Eigen::Vector<double, T::kRobotDOF>::Zero()};
123 Eigen::Vector<uint32_t, T::kRobotDOF> target_feedback_gain{Eigen::Vector<uint32_t, T::kRobotDOF>::Zero()};
124 Eigen::Vector<double, T::kRobotDOF> target_feedforward_torque{Eigen::Vector<double, T::kRobotDOF>::Zero()};
127 math::SE2::MatrixType odometry{math::SE2::Identity()};
130 Eigen::Vector<double, 3> center_of_mass;
133 Eigen::Vector<double, T::kRobotDOF> gravity;
136 std::vector<dyn::CollisionResult> collisions;
139 Eigen::Vector<int, T::kRobotDOF> temperature{Eigen::Vector<int, T::kRobotDOF>::Zero()};