18 #ifndef _GAZEBO_COLLISION_CONFIG_HH_
19 #define _GAZEBO_COLLISION_CONFIG_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;
135 public:
const std::map<int, CollisionConfigData *> &ConfigData()
const;
139 Q_SIGNALS:
void CollisionRemoved(
const std::string &_name);
143 Q_SIGNALS:
void CollisionAdded(
const std::string &_name);
146 Q_SIGNALS:
void Applied();
149 private slots:
void OnAddCollision();
153 private slots:
void OnRemoveCollision(
int _id);
159 private slots:
void OnPoseChanged(
const QString &_name,
160 const ignition::math::Pose3d &_value);
165 private slots:
void OnCollisionChanged(
166 const std::string &_name,
const std::string &_type);
171 Q_SIGNALS:
void CollisionChanged(
172 const std::string &_name,
const std::string &_type);
180 private slots:
void OnGeometryChanged(
const std::string &_name,
181 const std::string &_value,
182 const ignition::math::Vector3d &_dimensions,
183 const std::string &_uri);
186 private: std::map<int, CollisionConfigData *> configs;
189 private:
int counter;
192 private: QSignalMapper *signalMapper;
195 private: std::map<int, QTreeWidgetItem *> collisionItems;
198 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