moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
#include <motion_planning_frame_joints_widget.h>
Public Member Functions | |
JMGItemModel (const moveit::core::RobotState &robot_state, const std::string &group_name, QObject *parent=nullptr) | |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
QVariant | data (const QModelIndex &index, int role) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
void | updateRobotState (const moveit::core::RobotState &state) |
call this on any external change of the RobotState | |
moveit::core::RobotState & | getRobotState () |
const moveit::core::RobotState & | getRobotState () const |
const moveit::core::JointModelGroup * | getJointModelGroup () const |
TableModel to display joint values of a referenced RobotState.
Unfortunately we cannot store the RobotStatePtr (and thus ensure existence of the state during the lifetime of this class instance), because RobotInteraction (which is the initial use case) allocates internally a new RobotState if any other copy is held somewhere else. Hence, we also store an (unsafe) raw pointer. Lifetime of this raw pointer needs to be ensured.
Definition at line 67 of file motion_planning_frame_joints_widget.h.
moveit_rviz_plugin::JMGItemModel::JMGItemModel | ( | const moveit::core::RobotState & | robot_state, |
const std::string & | group_name, | ||
QObject * | parent = nullptr |
||
) |
Definition at line 49 of file motion_planning_frame_joints_widget.cpp.
|
override |
Definition at line 68 of file motion_planning_frame_joints_widget.cpp.
|
override |
Definition at line 88 of file motion_planning_frame_joints_widget.cpp.
|
override |
Definition at line 73 of file motion_planning_frame_joints_widget.cpp.
|
inline |
Definition at line 95 of file motion_planning_frame_joints_widget.h.
|
inline |
Definition at line 87 of file motion_planning_frame_joints_widget.h.
|
inline |
Definition at line 91 of file motion_planning_frame_joints_widget.h.
|
override |
Definition at line 133 of file motion_planning_frame_joints_widget.cpp.
|
override |
Definition at line 56 of file motion_planning_frame_joints_widget.cpp.
|
override |
Definition at line 140 of file motion_planning_frame_joints_widget.cpp.
void moveit_rviz_plugin::JMGItemModel::updateRobotState | ( | const moveit::core::RobotState & | state | ) |
call this on any external change of the RobotState
Definition at line 184 of file motion_planning_frame_joints_widget.cpp.