Skip to content

Commit 254310c

Browse files
committed
play around with fixing astro input relative pose
1 parent af4414a commit 254310c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

hydra_ros/include/hydra_ros/places/astro_traversability_estimator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class AstroTraversabilityEstimator : public TraversabilityEstimator {
5151
struct Config {
5252
//! @brief The height above the robot body to consider for traversability in meters.
5353
std::string input_topic = "/local_cost_map";
54-
unsigned int queue_size = 1;
54+
unsigned int queue_size = 2;
5555
} const config;
5656

5757
using State = spark_dsg::TraversabilityState;

hydra_ros/src/frontend/traversability_visualizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Color TraversabilityVisualizer::debugColor(float value) const {
173173
if (value < 0.0f) {
174174
return Color::black();
175175
}
176-
return spark_dsg::colormaps::rainbowId(static_cast<int>(value), 5);
176+
return spark_dsg::colormaps::rainbowId(static_cast<int>(value), 10);
177177
}
178178

179179
} // namespace hydra

hydra_ros/src/places/astro_traversability_estimator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void AstroTraversabilityEstimator::callback(
108108
const State state = occupancyToTraversability(msg->data[idx]);
109109
// Compute the voxel coordinates.
110110
const Eigen::Vector3f position =
111-
Eigen::Vector3f(x + 0.5f, y + 0.5f, 0.0f) * voxel_size + origin;
111+
Eigen::Vector3f(x, y, 0.0f) * voxel_size + origin;
112112
const auto index = traversability_layer_->globalIndexFromPoint(position);
113113
// TODO(lschmid): Fix the allocate block interfaces for the traversability layer.
114114
auto& block = traversability_layer_->allocateBlock(

0 commit comments

Comments
 (0)