-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check World joints in checkJointParentChildNames #1189
Changes from 1 commit
4e86c3e
c9e9558
4de3d60
d8d8cfd
d2779cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -86,6 +86,10 @@ def test_default_construction(self): | |||||
self.assertEqual(errors[1].message(), | ||||||
"PoseRelativeToGraph error: scope does not point to a valid graph.") | ||||||
|
||||||
# world dosn't have graphs, so no names should exist in graphs | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
self.assertFalse(world.name_exists_in_frame_attached_to_graph("")); | ||||||
self.assertFalse(world.name_exists_in_frame_attached_to_graph("link")); | ||||||
|
||||||
|
||||||
def test_copy_construction(self): | ||||||
world = World() | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -154,6 +154,10 @@ TEST(DOMModel, Construction) | |||||
errors[1].Message().find( | ||||||
"PoseRelativeToGraph error: scope does not point to a valid graph")) | ||||||
<< errors[1]; | ||||||
|
||||||
// model dosn't have graphs, so no names should exist in graphs | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
EXPECT_FALSE(model.NameExistsInFrameAttachedToGraph("")); | ||||||
EXPECT_FALSE(model.NameExistsInFrameAttachedToGraph("link")); | ||||||
} | ||||||
|
||||||
///////////////////////////////////////////////// | ||||||
|
@@ -229,6 +233,9 @@ TEST(DOMModel, AddLink) | |||||
EXPECT_EQ(1u, model.LinkCount()); | ||||||
EXPECT_FALSE(model.AddLink(link)); | ||||||
EXPECT_EQ(1u, model.LinkCount()); | ||||||
// model dosn't have graphs, so no names should exist in graphs | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
EXPECT_FALSE(model.NameExistsInFrameAttachedToGraph("")); | ||||||
EXPECT_FALSE(model.NameExistsInFrameAttachedToGraph("link1")); | ||||||
|
||||||
model.ClearLinks(); | ||||||
EXPECT_EQ(0u, model.LinkCount()); | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -93,6 +93,10 @@ TEST(DOMWorld, Construction) | |||||
EXPECT_NE(std::string::npos, | ||||||
errors[1].Message().find( | ||||||
"PoseRelativeToGraph error: scope does not point to a valid graph")); | ||||||
|
||||||
// world dosn't have graphs, so no names should exist in graphs | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
EXPECT_FALSE(world.NameExistsInFrameAttachedToGraph("")); | ||||||
EXPECT_FALSE(world.NameExistsInFrameAttachedToGraph("model1")); | ||||||
} | ||||||
|
||||||
///////////////////////////////////////////////// | ||||||
|
@@ -384,6 +388,9 @@ TEST(DOMWorld, AddModel) | |||||
EXPECT_EQ(1u, world.ModelCount()); | ||||||
EXPECT_FALSE(world.AddModel(model)); | ||||||
EXPECT_EQ(1u, world.ModelCount()); | ||||||
// world dosn't have graphs, so no names should exist in graphs | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
EXPECT_FALSE(world.NameExistsInFrameAttachedToGraph("")); | ||||||
EXPECT_FALSE(world.NameExistsInFrameAttachedToGraph("model1")); | ||||||
|
||||||
world.ClearModels(); | ||||||
EXPECT_EQ(0u, world.ModelCount()); | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d8d8cfd