Skip to content

Commit

Permalink
Merge pull request #4 from openhumanoids/mf-change-channel
Browse files Browse the repository at this point in the history
change default channel
  • Loading branch information
Maurice Fallon authored Nov 16, 2016
2 parents 4e2e852 + 5d4b037 commit b258841
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions maps_server/src/apps/DataRequestServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ struct Worker {

void sendOctreeWorkspaceRequest() {
maps::request_t msg = prepareRequestMessage();
msg.map_id = 1; // 1 means use SCAN_FREE | 2 or 3 means use SCAN
msg.map_id = 1; // 1 means use MULTISENSE_SCAN_FREE | 2 or 3 means use MULTISENSE_SCAN
msg.view_id = maps::data_request_t::OCTREE_WORKSPACE;
msg.resolution = 0.01;
// Mode recently changed to time history
Expand Down Expand Up @@ -325,7 +325,7 @@ struct Worker {

void sendDepthMapWorkspaceRequest() {
maps::request_t msg = prepareRequestMessage();
msg.map_id = 1; // 2 or 3 means use SCAN | 1 means use SCAN_FREE
msg.map_id = 1; // 2 or 3 means use MULTISENSE_SCAN | 1 means use MULTISENSE_SCAN_FREE
msg.view_id = maps::data_request_t::DEPTH_MAP_WORKSPACE_C;
msg.resolution = 0.01;
msg.width = msg.height = 200;
Expand Down
2 changes: 1 addition & 1 deletion maps_server/src/apps/PointCloudRegistrar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct State : public maps::Collector::DataListener {
mBotWrapper.reset(new maps::BotWrapper(mLcm));
mCollector.reset(new maps::Collector());
mCollector->setBotWrapper(mBotWrapper);
mLaserChannel = "SCAN_FREE";
mLaserChannel = "MULTISENSE_SCAN_FREE";
mUpdateChannel = "MAP_LOCAL_CORRECTION";
mActiveMapId = 1;
mTimeMin = mTimeMax = 0;
Expand Down
2 changes: 1 addition & 1 deletion maps_server/src/apps/TestMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ int main() {
state.mActiveMapId = state.mCollector->getMapManager()->createMap(mapSpec);

// start running wrapper
std::string laserChannel("SCAN");
std::string laserChannel("MULTISENSE_SCAN");
state.mCollector->getDataReceiver()->
addChannel(laserChannel,
SensorDataReceiver::SensorTypePlanarLidar,
Expand Down
8 changes: 4 additions & 4 deletions maps_server/src/apps/server/ServerMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ class State {
maps::Clock::instance()->setVerbose(false);
mCollector.reset(new Collector());
mCollector->setBotWrapper(mBotWrapper);
mStereoHandlerHead.reset(new StereoHandler(mBotWrapper, "CAMERA"));
mStereoHandlerHead.reset(new StereoHandler(mBotWrapper, "MULTISENSE_CAMERA"));
if (!mStereoHandlerHead->isGood()) mStereoHandlerHead.reset();
mFusedDepthHandler.reset(new FusedDepthHandler(mBotWrapper));
// TODO: can we avoid hard-coding these?
Expand Down Expand Up @@ -631,7 +631,7 @@ int main(const int iArgc, const char** iArgv) {
auto lcm = state.mBotWrapper->getLcm();

// parse arguments
string laserChannel = "SCAN_FREE";
string laserChannel = "MULTISENSE_SCAN_FREE";
float publishPeriod = 0;
float defaultResolution = 0.1;
bool latestSwath = false;
Expand Down Expand Up @@ -664,15 +664,15 @@ int main(const int iArgc, const char** iArgv) {
state.mCollector->bind(rawChannel, 3);
}

// add unfiltered map (SCAN_FREE)
// add unfiltered map (MULTISENSE_SCAN_FREE)
LocalMap::Spec mapSpec;
mapSpec.mId = 1;
mapSpec.mPointBufferSize = 5000;
mapSpec.mActive = true;
mapSpec.mResolution = defaultResolution;
state.mCollector->getMapManager()->createMap(mapSpec);

// add angle-filtered map (SCAN)
// add angle-filtered map (MULTISENSE_SCAN)
mapSpec.mId = 2;
state.mCollector->getMapManager()->createMap(mapSpec);
auto localMap = state.mCollector->getMapManager()->getMap(mapSpec.mId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ class AnnotatedCameraRenderer : public gtkmm::RendererBase {
Gtk::Notebook* notebook = Gtk::manage(new Gtk::Notebook());

Gtk::VBox* page = Gtk::manage(new Gtk::VBox());
addCameraWidget("CAMERA", page);
addCameraWidget("MULTISENSE_CAMERA", page);
addCameraWidget("CAMERA_LHAND", page);
addCameraWidget("CAMERA_RHAND", page);
notebook->append_page(*page, "Cameras");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ class CameraRenderer : public gtkmm::RendererBase {
container->pack_start(*mViewTargetTable,false,false);

CameraState::Ptr cam;
cam.reset(new CameraState("CAMERA", "head", this, true));
cam.reset(new CameraState("MULTISENSE_CAMERA", "head", this, true));
cam->mPlacement = ImagePlacementTopCenter;
cam->mNativeImage = true;
mCameraStates.push_back(cam);
Expand Down
2 changes: 1 addition & 1 deletion maps_server/src/renderers/maps-renderer/MapsRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MapsRenderer(BotViewer* iViewer, const int iPriority,
mMeshRenderer->setBotObjects(getLcm(), getBotParam(), getBotFrames());
mMeshRenderer->addCameraChannel("CAMERACHEST_LEFT");
mMeshRenderer->addCameraChannel("CAMERACHEST_RIGHT");
mMeshRenderer->addCameraChannel("CAMERA",true);
mMeshRenderer->addCameraChannel("MULTISENSE_CAMERA",true);
//mMeshRenderer->setActiveCameraChannel("CAMERA_LEFT");
mViewClient.setBotWrapper(mBotWrapper);
mViewClient.addListener(this);
Expand Down

0 comments on commit b258841

Please sign in to comment.