why need a dummy trajectory in joint_trajectory_action_controller.cpp
Hi,
in joint_trajectory_action_controller.cpp (robot_mechanism_controllers package)
// Creates a dummy trajectory
boost::shared_ptr<SpecifiedTrajectory> traj_ptr(new SpecifiedTrajectory(1));
SpecifiedTrajectory &traj = *traj_ptr;
traj[0].start_time = robot_->getTime().toSec();
traj[0].duration = 0.0;
traj[0].splines.resize(joints_.size());
for (size_t j = 0; j < joints_.size(); ++j)
traj[0].splines[j].coef[0] = 0.0;
current_trajectory_box_.set(traj_ptr);
Why need to create a dummy trajectory?
Thanks for any help in advance!