Repository navigation
Graphically print current robot joint states with joint limits - #1358
Merged
davetcoleman merged 1 commit intoFeb 25, 2019
Merged
Conversation
mlautman
approved these changes
Feb 22, 2019
rhaschke
requested changes
Feb 23, 2019
| { | ||
| moveit::core::RobotState state(robot_model_); | ||
| const robot_model::JointModelGroup* joint_model_group = robot_model_->getJointModelGroup("base_from_base_to_e"); | ||
| EXPECT_TRUE(joint_model_group); |
Contributor
There was a problem hiding this comment.
Suggested change
| EXPECT_TRUE(joint_model_group); | |
| ASSERT_TRUE(joint_model_group); |
| out << nm[i] << "=" << position_[i] << std::endl; | ||
| } | ||
|
|
||
| bool RobotState::printStatePositionsWithJointLimits(const moveit::core::JointModelGroup* jmg, std::ostream& out) const |
Contributor
There was a problem hiding this comment.
What's the motivation behind the return value in this print function?
The function is always returning true. Please change to returning void.
Member
Author
There was a problem hiding this comment.
it used to return false when there were multi-variable joints, but i removed that. fixed per you
davetcoleman
force-pushed
the
melodic-print-joint-limits
branch
from
February 24, 2019 21:37
fc3a657 to
8938af8
Compare
rhaschke
reviewed
Feb 25, 2019
| void RobotState::printStatePositionsWithJointLimits(const moveit::core::JointModelGroup* jmg, std::ostream& out) const | ||
| { | ||
| // TODO(davetcoleman): support joints with multiple variables / multiple DOFs such as floating joints | ||
| // TODO(davetcoleman): support unbounded joints |
Contributor
There was a problem hiding this comment.
That's an interesting solution to reply to change requests 😉
Member
Author
There was a problem hiding this comment.
i think its a very good solution myself! don't build it until you need it...
rhaschke
approved these changes
Feb 25, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A trivial feature I made a long time ago, with unit tests