54 void update(
const std::vector<PeerState> &peers);
64 std::shared_ptr<chrono::ChBody>
get(
const std::string &participant,
65 const std::string &body)
const;
68 chrono::ChSystem &system_;
69 std::map<std::string, std::shared_ptr<chrono::ChBodyEasyBox>> ghosts_;
std::shared_ptr< chrono::ChBody > get(const std::string &participant, const std::string &body) const
The ghost of a body of a peer, or nullptr.
Definition chrono_ghosts.cpp:39
BodyState chrono_body_state(const std::string &name, const chrono::ChBody &body, const std::array< real_t, 3 > &size)
The state of a Chrono body, to send to the other participants.
Definition chrono_ghosts.cpp:14
The state of one body of a participant: where it is, how it moves, and how big it is.
Definition state_message.h:24