Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into inverse-kinematics-requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Geeoon committed Jun 4, 2023
2 parents d71ae6a + bf351e2 commit 6354a89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Rover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ using namespace navtypes;
using namespace robot::types;

void closeRover(int signum) {
robot::emergencyStop();
rospub::shutdown();
Globals::websocketServer.stop();
raise(SIGTERM);
Expand Down
8 changes: 2 additions & 6 deletions src/world_interface/real_world_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
#include "../Constants.h"
#include "../Globals.h"
#include "../Util.h"
#include "../ar/read_landmarks.h"
#include "../ardupilot/ArduPilotInterface.h"
#include "../camera/Camera.h"
#include "../gps/usb_gps/read_usb_gps.h"
#include "../lidar/read_hokuyo_lidar.h"
#include "../log.h"
#include "../navtypes.h"
#include "motor/can_motor.h"
Expand Down Expand Up @@ -139,8 +137,6 @@ void setupCameras() {
void world_interface_init(bool initOnlyMotors) {
if (!initOnlyMotors) {
setupCameras();
bool lidar_success = lidar::initializeLidar();
bool landmark_success = AR::initializeLandmarkDetection();
ardupilot::initArduPilotProtocol(Globals::websocketServer);
}
can::initCAN();
Expand Down Expand Up @@ -236,11 +232,11 @@ DataPoint<pose_t> getTruePose() {
}

landmarks_t readLandmarks() {
return AR::readLandmarks();
return {};
}

DataPoint<points_t> readLidarScan() {
return lidar::readLidar();
return {};
}

DataPoint<pose_t> readVisualOdomVel() {
Expand Down

0 comments on commit 6354a89

Please sign in to comment.