42 : state_(std::make_shared<
moveit::core::RobotState>(state))
48 : state_(std::make_shared<
moveit::core::RobotState>(model))
50 state_->setToDefaultValues();
58 std::scoped_lock lock(state_lock_);
65 std::scoped_lock lock(state_lock_);
75 state_ = std::make_shared<moveit::core::RobotState>(state);
86 std::scoped_lock lock(state_lock_);
91 state_ = std::make_shared<moveit::core::RobotState>(*state_);
Representation of a robot's state. This includes position, velocity, acceleration and effort.
moveit::core::RobotStateConstPtr getState() const
get read-only access to the state.
virtual ~LockedRobotState()
LockedRobotState(const moveit::core::RobotState &state)
void modifyState(const ModifyStateFunction &modify)
std::function< void(moveit::core::RobotState *)> ModifyStateFunction
virtual void robotStateChanged()
void setState(const moveit::core::RobotState &state)
Set the state to the new value.
Main namespace for MoveIt.