Skip to content

Commit

Permalink
Fix sim connection (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaybd authored Sep 29, 2023
1 parent cdfcf79 commit 29ac65c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ void parseCommandLine(int argc, char** argv) {
int main(int argc, char** argv) {
parseCommandLine(argc, argv);
Globals::AUTONOMOUS = false;
robot::world_interface_init();
Globals::websocketServer.start();
robot::world_interface_init();
auto mcProto = std::make_unique<net::mc::MissionControlProtocol>(Globals::websocketServer);
Globals::websocketServer.addProtocol(std::move(mcProto));
rospub::init();
Expand Down
3 changes: 2 additions & 1 deletion src/world_interface/simulator_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const std::map<motorid_t, std::string> motorNameMap = {
{motorid_t::elbow, "elbow"},
{motorid_t::forearm, "forearm"},
{motorid_t::wrist, "wrist"},
{motorid_t::hand, "hand"}};
{motorid_t::hand, "hand"},
{motorid_t::activeSuspension, "activeSuspension"}};

DataPoint<navtypes::eulerangles_t> lastAttitude;
std::mutex attitudeMutex;
Expand Down

0 comments on commit 29ac65c

Please sign in to comment.