Skip to content

Commit

Permalink
feat: add shared pointer holder types for Orbit and Profile [for Simu…
Browse files Browse the repository at this point in the history
…lation] (#379)

feat; add shared pointer holder types for Orbit and Profile [for use with simulation]
  • Loading branch information
vishwa2710 authored Mar 28, 2024
1 parent ebbe2c1 commit fbe0d50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inline void OpenSpaceToolkitAstrodynamicsPy_Flight_Profile(pybind11::module& aMo
using ostk::astrodynamics::flight::profile::Model;
using ostk::astrodynamics::trajectory::State;

class_<Profile>(
class_<Profile, Shared<Profile>>(
aModule,
"Profile",
R"doc(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ inline void OpenSpaceToolkitAstrodynamicsPy_Trajectory(pybind11::module& aModule
{
using namespace pybind11;

using ostk::core::type::Shared;
using ostk::core::container::Array;

using ostk::astrodynamics::Trajectory;
using ostk::astrodynamics::trajectory::State;

class_<Trajectory>(
class_<Trajectory, Shared<Trajectory>>(
aModule,
"Trajectory",
R"doc(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ inline void OpenSpaceToolkitAstrodynamicsPy_Trajectory_Orbit(pybind11::module& a
using ostk::astrodynamics::trajectory::orbit::model::SGP4;

{
class_<Orbit, ostk::astrodynamics::Trajectory> orbit_class(
class_<Orbit, ostk::astrodynamics::Trajectory, Shared<Orbit>> orbit_class(
aModule,
"Orbit",
R"doc(
Expand Down

0 comments on commit fbe0d50

Please sign in to comment.