-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from NASA-Tensegrity-Robotics-Toolkit/NullGround
Merging in tgEmptyGround and associated files. Cleanup of comments in the terrain library generally. Closes #86
- Loading branch information
Showing
10 changed files
with
128 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,4 +111,4 @@ class tgBoxGround : public tgBulletGround | |
}; | ||
|
||
|
||
#endif // TG_WORLDIMPL_H | ||
#endif // TG_BOX_GROUND_H |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright © 2012, United States Government, as represented by the | ||
* Administrator of the National Aeronautics and Space Administration. | ||
* All rights reserved. | ||
* | ||
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed | ||
* under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
|
||
/** | ||
* @file tgEmptyGround.cpp | ||
* @brief Contains the implementation of class tgBoxGround | ||
* @author Brian Mirletz | ||
* $Id$ | ||
*/ | ||
|
||
//This Module | ||
#include "tgEmptyGround.h" | ||
|
||
//Bullet Physics | ||
#include "BulletDynamics/Dynamics/btRigidBody.h" | ||
|
||
// The C++ Standard Library | ||
#include <cassert> | ||
|
||
tgEmptyGround::tgEmptyGround() | ||
{ | ||
|
||
} | ||
|
||
btRigidBody* tgEmptyGround::getGroundRigidBody() const | ||
{ | ||
btRigidBody* const pGroundBody = NULL; | ||
|
||
// This should never be called | ||
assert(false); | ||
|
||
return pGroundBody; | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* Copyright © 2012, United States Government, as represented by the | ||
* Administrator of the National Aeronautics and Space Administration. | ||
* All rights reserved. | ||
* | ||
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed | ||
* under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
|
||
#ifndef TG_EMPTY_GROUND_H | ||
#define TG_EMPTY_GROUND_H | ||
|
||
/** | ||
* @file tgEmptyGround.h | ||
* @brief Contains the definition of class tgEmptyGround. | ||
* @author Brian Mirletz | ||
* $Id$ | ||
*/ | ||
|
||
#include "tgBulletGround.h" | ||
|
||
// Forward declarations | ||
class btRigidBody; | ||
|
||
/** | ||
* An empty ground implementation. tgWorldBulletPhysicsImpl checks if | ||
* this class is present with a tgCast call, and skips calling | ||
* getGroundRigidBody if it is. | ||
*/ | ||
class tgEmptyGround : public tgBulletGround | ||
{ | ||
public: | ||
|
||
/** | ||
* Default construction that uses the default values of config | ||
* Does nothing | ||
*/ | ||
tgEmptyGround(); | ||
|
||
/** Clean up the implementation. The base class holds nothing. */ | ||
virtual ~tgEmptyGround() { } | ||
|
||
/** | ||
* This should never be called. Will fail an assertation | ||
* @todo consider making it an exception instead. | ||
*/ | ||
virtual btRigidBody* getGroundRigidBody() const; | ||
|
||
}; | ||
|
||
|
||
#endif // TG_EMPTY_GROUND_H |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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