18 #ifndef _GAZEBO_COLLISION_CONFIG_HH_
19 #define _GAZEBO_COLLISION_CONFIG_HH_
47 private slots:
void OnToggleItem(
bool _checked);
82 public slots:
void RestoreOriginalData();
88 public:
void AddCollision(
const std::string &_name,
89 const msgs::Collision *_collisionMsg =
NULL);
95 public:
void UpdateCollision(
const std::string &_name,
96 ConstCollisionPtr _collisionMsg);
103 public:
unsigned int GetCollisionCount()
const;
108 public: msgs::Collision *GetData(
const std::string &_name)
const;
114 public:
void SetGeometry(
const std::string &_name,
115 const ignition::math::Vector3d &_size,
const std::string &_uri =
"");
121 public:
void Geometry(
const std::string &_name,
122 ignition::math::Vector3d &_size, std::string &_uri)
const;
126 public:
const std::map<int, CollisionConfigData *> &ConfigData()
const;
130 Q_SIGNALS:
void CollisionRemoved(
const std::string &_name);
134 Q_SIGNALS:
void CollisionAdded(
const std::string &_name);
137 Q_SIGNALS:
void Applied();
140 private slots:
void OnAddCollision();
144 private slots:
void OnRemoveCollision(
int _id);
150 private slots:
void OnPoseChanged(
const QString &_name,
151 const ignition::math::Pose3d &_value);
159 private slots:
void OnGeometryChanged(
const std::string &_name,
160 const std::string &_value,
161 const ignition::math::Vector3d &_dimensions,
162 const std::string &_uri);
165 private: std::map<int, CollisionConfigData *> configs;
168 private:
int counter;
171 private: QSignalMapper *signalMapper;
174 private: std::map<int, QTreeWidgetItem *> collisionItems;
177 private: QVBoxLayout *listLayout;
#define GZ_GUI_VISIBLE
Definition: system.hh:284
A class of widgets used for configuring collision properties.
Definition: CollisionConfig.hh:38
std::string name
Name of the collision.
Definition: CollisionConfig.hh:53
msgs::Collision originalDataMsg
Message containing the data which was in the widget when first open.
Definition: CollisionConfig.hh:63
QWidget * widget
Widget associated with this data.
Definition: CollisionConfig.hh:59
void RestoreOriginalData()
Restore the widget's data to how it was when first opened.
ConfigWidget * configWidget
Config widget for configuring collision properties.
Definition: CollisionConfig.hh:56
#define NULL
Definition: CommonTypes.hh:31
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
A tab for configuring collision properties of a link.
Definition: CollisionConfig.hh:68
int id
Unique ID of this collision config.
Definition: CollisionConfig.hh:50