Skip to content

Commit 824ec23

Browse files
rjoomenLevi-Armstrong
authored andcommitted
Allow enabling OSQP workspace update via settings
1 parent 786bf63 commit 824ec23

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tesseract_motion_planners/trajopt/include/tesseract_motion_planners/trajopt/profile/trajopt_osqp_solver_profile.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ class TrajOptOSQPSolverProfile : public TrajOptSolverProfile
4848

4949
OSQPSettings settings{};
5050

51+
bool update_workspace{ false };
52+
5153
sco::ModelType getSolverType() const override;
5254

5355
std::unique_ptr<sco::ModelConfig> createSolverConfig() const override;

tesseract_motion_planners/trajopt/src/profile/trajopt_osqp_solver_profile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ std::unique_ptr<sco::ModelConfig> TrajOptOSQPSolverProfile::createSolverConfig()
7373
{
7474
auto config = std::make_unique<sco::OSQPModelConfig>();
7575
config->settings = settings;
76+
config->update_workspace = update_workspace;
7677
return config;
7778
}
7879

@@ -81,6 +82,7 @@ void TrajOptOSQPSolverProfile::serialize(Archive& ar, const unsigned int /*versi
8182
{
8283
ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(TrajOptSolverProfile);
8384
ar& BOOST_SERIALIZATION_NVP(settings);
85+
ar& BOOST_SERIALIZATION_NVP(update_workspace);
8486
}
8587

8688
} // namespace tesseract_planning

0 commit comments

Comments
 (0)