-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added link velocity components and changes to physics systems
Signed-off-by: yaswanth1701 <[email protected]>
- Loading branch information
1 parent
3c2a3ce
commit f3244fa
Showing
3 changed files
with
274 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Copyright (C) 2024 Open Source Robotics Foundation | ||
* | ||
* 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 GZ_SIM_COMPONENTS_WORLDANGULARVELOCITYRESET_HH_ | ||
#define GZ_SIM_COMPONENTS_WORLDANGULARELOCITYRESET_HH_ | ||
|
||
#include <gz/math/Vector3.hh> | ||
#include <gz/sim/components/Component.hh> | ||
#include <gz/sim/components/Factory.hh> | ||
#include <gz/sim/components/Serialization.hh> | ||
#include <gz/sim/config.hh> | ||
|
||
namespace gz | ||
{ | ||
namespace sim | ||
{ | ||
// Inline bracket to help doxygen filtering. | ||
inline namespace GZ_SIM_VERSION_NAMESPACE { | ||
namespace components | ||
{ | ||
/// \brief Link initial angular velocity in its own frame and | ||
/// in SI units (rad/s).The angular velocity of entity is | ||
/// represented by gz::math::vector3d. | ||
using AngularVelocityReset = Component<math::Vector3d, | ||
class AngularVelocityResetTag>; | ||
GZ_SIM_REGISTER_COMPONENT( | ||
"gz_sim_components.AngularVelocityReset", AngularVelocityReset) | ||
|
||
/// \brief Link initial angular velocity in world frame and | ||
/// in SI units (rad/s). The angular velocity of entity is | ||
// represented by gz::math::vector3d. | ||
using WorldAngularVelocityReset = Component<math::Vector3d, | ||
class WorldAngularVelocityResetTag>; | ||
GZ_SIM_REGISTER_COMPONENT( | ||
"gz_sim_components.WorldAngularVelocityReset", WorldAngularVelocityReset) | ||
} | ||
} | ||
} | ||
} | ||
|
||
#endif |
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,54 @@ | ||
/* | ||
* Copyright (C) 2024 Open Source Robotics Foundation | ||
* | ||
* 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 GZ_SIM_COMPONENTS_WORLDLINEARVELOCITYRESET_HH_ | ||
#define GZ_SIM_COMPONENTS_WORLDLINEARVELOCITYRESET_HH_ | ||
|
||
#include <gz/math/Vector3.hh> | ||
#include <gz/sim/components/Component.hh> | ||
#include <gz/sim/components/Factory.hh> | ||
#include <gz/sim/components/Serialization.hh> | ||
#include <gz/sim/config.hh> | ||
|
||
namespace gz | ||
{ | ||
namespace sim | ||
{ | ||
// Inline bracket to help doxygen filtering. | ||
inline namespace GZ_SIM_VERSION_NAMESPACE { | ||
namespace components | ||
{ | ||
/// \brief Entity initial linear velocity in its own frame and | ||
/// in SI units (m/s). The linear velocity of entity is | ||
/// represented by gz::math::vector3d. | ||
using LinearVelocityReset = Component<math::Vector3d , | ||
class LinearVelocityResetTag>; | ||
GZ_SIM_REGISTER_COMPONENT( | ||
"gz_sim_components.LinearVelocityReset", LinearVelocityReset) | ||
|
||
/// \brief Entity initial linear velocity in world frame and | ||
/// in SI units (m/s). The linear velocity of entity is | ||
/// represented by gz::math::vector3d. | ||
using WorldLinearVelocityReset = Component<math::Vector3d , | ||
class WorldLinearVelocityResetTag>; | ||
GZ_SIM_REGISTER_COMPONENT( | ||
"gz_sim_components.WorldLinearVelocityReset", WorldLinearVelocityReset) | ||
} | ||
} | ||
} | ||
} | ||
|
||
#endif |
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