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);
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);
150 Q_SIGNALS:
void CollisionAdded(
const std::string &_name,
151 const std::string &_collisionShape);
156 Q_SIGNALS:
void ShowCollision(
const bool _show,
const std::string &_name);
159 Q_SIGNALS:
void Applied();
164 private slots:
void OnAddCollision(
const QString &_collisionShape);
168 private slots:
void OnRemoveCollision(
int _id);
172 private slots:
void OnShowCollision(
const int _id);
178 private slots:
void OnPoseChanged(
const QString &_name,
179 const ignition::math::Pose3d &_value);
184 private slots:
void OnCollisionChanged(
185 const std::string &_name,
const std::string &_type);
191 const std::string &_name,
const std::string &_type);
199 private slots:
void OnGeometryChanged(
const std::string &_name,
200 const std::string &_value,
201 const ignition::math::Vector3d &_dimensions,
202 const std::string &_uri);
205 private: std::map<int, CollisionConfigData *> configs;
208 private: std::map<int, CollisionConfigData *> deletedConfigs;
211 private: std::map<int, CollisionConfigData *> addedConfigs;
214 private:
int counter;
217 private: QSignalMapper *mapperRemove;
220 private: QSignalMapper *mapperShow;
223 private: QSignalMapper *mapperAdd;
226 private: std::map<int, QTreeWidgetItem *> collisionItems;
229 private: QVBoxLayout *listLayout;
void RestoreOriginalData()
Restore the widget's data to how it was when first opened.
Forward declarations for the common classes.
Definition: Animation.hh:26
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
gui
Definition: KeyEventHandler.hh:29
#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