-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: yaswanth1701 <[email protected]>
- Loading branch information
1 parent
3c2a3ce
commit 21f0b9a
Showing
3 changed files
with
256 additions
and
0 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 Angular velocity of an entity, in it's own frame | ||
/// and in SI units (rad/s). The angular velocity is | ||
// represented by gz::math::Vector3d. | ||
using AngularVelocityReset = Component<math::Vector3d, | ||
class AngularVelocityResetTag>; | ||
GZ_SIM_REGISTER_COMPONENT( | ||
"gz_sim_components.AngularVelocityReset", AngularVelocityReset) | ||
|
||
/// \brief Angular velocity of an entity in the world frame | ||
/// and in SI units (rad/s). The angular velocity 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 Linear velocity of an entity in its own frame | ||
/// and in SI units (m/s). The linear velocity is | ||
/// represented by gz::math::Vector3d. | ||
using LinearVelocityReset = Component<math::Vector3d , | ||
class LinearVelocityResetTag>; | ||
GZ_SIM_REGISTER_COMPONENT( | ||
"gz_sim_components.LinearVelocityReset", LinearVelocityReset) | ||
|
||
/// \brief Linear velocity of an entity in the world frame | ||
/// and in SI units (m/s). The linear velocity 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