MCPcopy Create free account
hub / github.com/CCNYRoboticsLab/imu_tools / createProperties

Method createProperties

rviz_imu_plugin/src/imu_display.cpp:227–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void ImuDisplay::createProperties()
228{
229 // **** top level properties
230 fixed_frame_orientation_property_ =
231 new rviz_common::properties::BoolProperty(
232 "fixed_frame_orientation", fixed_frame_orientation_,
233 "Use world fixed frame for display orientation instead of IMU "
234 "reference frame",
235 this, SLOT(updateTop()), this);
236
237 // **** box properties
238 box_category_ = new rviz_common::properties::Property(
239 "Box properties", QVariant(), "The list of all the box properties",
240 this);
241 box_enabled_property_ = new rviz_common::properties::BoolProperty(
242 "Enable box", box_enabled_, "Enable the box display", box_category_,
243 SLOT(updateBox()), this);
244 box_scale_x_property_ = new rviz_common::properties::FloatProperty(
245 "x_scale", 1.0, "Box length (x), in meters.", box_category_,
246 SLOT(updateBox()), this);
247 box_scale_y_property_ = new rviz_common::properties::FloatProperty(
248 "y_scale", 1.0, "Box length (y), in meters.", box_category_,
249 SLOT(updateBox()), this);
250 box_scale_z_property_ = new rviz_common::properties::FloatProperty(
251 "z_scale", 1.0, "Box length (z), in meters.", box_category_,
252 SLOT(updateBox()), this);
253 box_color_property_ = new rviz_common::properties::ColorProperty(
254 "Box color", Qt::red, "Color to draw IMU box", box_category_,
255 SLOT(updateBox()), this);
256 box_alpha_property_ = new rviz_common::properties::FloatProperty(
257 "Box alpha", 1.0, "0 is fully transparent, 1.0 is fully opaque.",
258 box_category_, SLOT(updateBox()), this);
259
260 // **** axes properties
261 axes_category_ = new rviz_common::properties::Property(
262 "Axes properties", QVariant(), "The list of all the axes properties",
263 this);
264 axes_enabled_property_ = new rviz_common::properties::BoolProperty(
265 "Enable axes", axes_enabled_, "Enable the axes display", axes_category_,
266 SLOT(updateAxes()), this);
267 axes_scale_property_ = new rviz_common::properties::FloatProperty(
268 "Axes scale", true, "Axes size, in meters", axes_category_,
269 SLOT(updateAxes()), this);
270
271 // **** acceleration vector properties
272 acc_category_ = new rviz_common::properties::Property(
273 "Acceleration properties", QVariant(),
274 "The list of all the acceleration properties", this);
275 acc_enabled_property_ = new rviz_common::properties::BoolProperty(
276 "Enable acceleration", acc_enabled_, "Enable the acceleration display",
277 acc_category_, SLOT(updateAcc()), this);
278
279 acc_derotated_property_ = new rviz_common::properties::BoolProperty(
280 "Derotate acceleration", true,
281 "If selected, the acceleration is derotated by the IMU orientation. "
282 "Otherwise, the raw sensor reading is displayed.",
283 acc_category_, SLOT(updateAcc()), this);
284 acc_scale_property_ = new rviz_common::properties::FloatProperty(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected