18 #ifndef GAZEBO_GUI_MODEL_COLLISIONCONFIG_HH_
19 #define GAZEBO_GUI_MODEL_COLLISIONCONFIG_HH_
47 private slots:
void OnToggleItem(
bool _checked);
50 private slots:
void OnGeometryChanged();
56 const std::string &_type);
91 public slots:
void RestoreOriginalData();
97 public:
void AddCollision(
const std::string &_name,
98 const msgs::Collision *_collisionMsg =
NULL);
104 public:
void UpdateCollision(
const std::string &_name,
105 ConstCollisionPtr _collisionMsg);
108 public:
void Reset();
112 public:
unsigned int GetCollisionCount()
const;
117 public: msgs::Collision *GetData(
const std::string &_name)
const;
123 public:
void SetGeometry(
const std::string &_name,
124 const ignition::math::Vector3d &_size,
const std::string &_uri =
"");
130 public:
void Geometry(
const std::string &_name,
131 ignition::math::Vector3d &_size, std::string &_uri)
const;
136 public:
void SetShowCollision(
const bool _show,
const std::string &_name);
140 public:
const std::map<int, CollisionConfigData *> &ConfigData()
const;
144 Q_SIGNALS:
void CollisionRemoved(
const std::string &_name);
148 Q_SIGNALS:
void CollisionAdded(
const std::string &_name);
153 Q_SIGNALS:
void ShowCollision(
const bool _show,
const std::string &_name);
156 Q_SIGNALS:
void Applied();
159 private slots:
void OnAddCollision();
163 private slots:
void OnRemoveCollision(
int _id);
167 private slots:
void OnShowCollision(
const int _id);
173 private slots:
void OnPoseChanged(
const QString &_name,
174 const ignition::math::Pose3d &_value);
179 private slots:
void OnCollisionChanged(
180 const std::string &_name,
const std::string &_type);
185 Q_SIGNALS:
void CollisionChanged(
186 const std::string &_name,
const std::string &_type);
194 private slots:
void OnGeometryChanged(
const std::string &_name,
195 const std::string &_value,
196 const ignition::math::Vector3d &_dimensions,
197 const std::string &_uri);
200 private: std::map<int, CollisionConfigData *> configs;
203 private: std::map<int, CollisionConfigData *> deletedConfigs;
206 private: std::map<int, CollisionConfigData *> addedConfigs;
209 private:
int counter;
212 private: QSignalMapper *mapperRemove;
215 private: QSignalMapper *mapperShow;
218 private: std::map<int, QTreeWidgetItem *> collisionItems;
221 private: QVBoxLayout *listLayout;
void RestoreOriginalData()
Restore the widget's data to how it was when first opened.
A class of widgets used for configuring collision properties.
Definition: CollisionConfig.hh:38
msgs::Collision originalDataMsg
Message containing the data which was in the widget when first open.
Definition: CollisionConfig.hh:72
ConfigWidget * configWidget
Config widget for configuring collision properties.
Definition: CollisionConfig.hh:65
std::string name
Name of the collision.
Definition: CollisionConfig.hh:62
#define NULL
Definition: CommonTypes.hh:31
int id
Unique ID of this collision config.
Definition: CollisionConfig.hh:59
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
QWidget * widget
Widget associated with this data.
Definition: CollisionConfig.hh:68
void CollisionChanged(const std::string &_name, const std::string &_type)
Signal to indicate a collision change.
A tab for configuring collision properties of a link.
Definition: CollisionConfig.hh:77