mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
std::string -> const std::string&
This commit is contained in:
parent
f2c0c7bf90
commit
525ac10bbf
@ -55,7 +55,7 @@ protected:
|
||||
|
||||
public:
|
||||
typedef std::vector<std::pair<std::string, solvers::PlannerInterfacePtr>> GroupPlannerVector;
|
||||
Connect(std::string name, const GroupPlannerVector& planners);
|
||||
Connect(const std::string& name, const GroupPlannerVector& planners);
|
||||
|
||||
void setTimeout(const ros::Duration& timeout){
|
||||
setProperty("timeout", timeout.toSec());
|
||||
|
||||
@ -49,7 +49,7 @@ namespace moveit { namespace task_constructor { namespace stages {
|
||||
/** Perform a Cartesian motion relative to some link */
|
||||
class MoveRelative : public PropagatingEitherWay {
|
||||
public:
|
||||
MoveRelative(std::string name, const solvers::PlannerInterfacePtr& planner);
|
||||
MoveRelative(const std::string& name, const solvers::PlannerInterfacePtr& planner);
|
||||
|
||||
void init(const moveit::core::RobotModelConstPtr& robot_model) override;
|
||||
bool computeForward(const InterfaceState& from) override;
|
||||
|
||||
@ -48,7 +48,7 @@ namespace moveit { namespace task_constructor { namespace stages {
|
||||
|
||||
class MoveTo : public PropagatingEitherWay {
|
||||
public:
|
||||
MoveTo(std::string name, const solvers::PlannerInterfacePtr& planner);
|
||||
MoveTo(const std::string& name, const solvers::PlannerInterfacePtr& planner);
|
||||
|
||||
void init(const moveit::core::RobotModelConstPtr& robot_model) override;
|
||||
bool computeForward(const InterfaceState& from) override;
|
||||
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
namespace moveit { namespace task_constructor { namespace stages {
|
||||
|
||||
Connect::Connect(std::string name, const GroupPlannerVector& planners)
|
||||
Connect::Connect(const std::string& name, const GroupPlannerVector& planners)
|
||||
: Connecting(name)
|
||||
, planner_(planners)
|
||||
{
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
namespace moveit { namespace task_constructor { namespace stages {
|
||||
|
||||
MoveRelative::MoveRelative(std::string name, const solvers::PlannerInterfacePtr& planner)
|
||||
MoveRelative::MoveRelative(const std::string& name, const solvers::PlannerInterfacePtr& planner)
|
||||
: PropagatingEitherWay(name)
|
||||
, planner_(planner)
|
||||
{
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
namespace moveit { namespace task_constructor { namespace stages {
|
||||
|
||||
MoveTo::MoveTo(std::string name, const solvers::PlannerInterfacePtr& planner)
|
||||
MoveTo::MoveTo(const std::string& name, const solvers::PlannerInterfacePtr& planner)
|
||||
: PropagatingEitherWay(name)
|
||||
, planner_(planner)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user