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 More... | |
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 50 of file motion_planning_frame_joints_widget.cpp.
|
override |
Definition at line 65 of file motion_planning_frame_joints_widget.cpp.
|
override |
Definition at line 85 of file motion_planning_frame_joints_widget.cpp.
|
override |
Definition at line 70 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 130 of file motion_planning_frame_joints_widget.cpp.
|
override |
Definition at line 57 of file motion_planning_frame_joints_widget.cpp.
|
override |
Definition at line 137 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 181 of file motion_planning_frame_joints_widget.cpp.