ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you have to move these lines,

    // hacking this in here at this place
  io_ctrl_.init(connection);
  this->srv_read_single_io = this->node_.advertiseService("read_single_io",
      &MotomanJointTrajectoryStreamer::readSingleIoCB, this);
  this->srv_write_single_io = this->node_.advertiseService("write_single_io",
      &MotomanJointTrajectoryStreamer::writeSingleIoCB, this);

inside this method,

bool MotomanJointTrajectoryStreamer::init(SmplMsgConnection* connection, const std::vector<std::string> &joint_names, const std::map<std::string, double=""> &velocity_limits) { ... }

click to hide/show revision 2
No.2 Revision

you have to move these lines,

    // hacking this in here at this place
  io_ctrl_.init(connection);
  this->srv_read_single_io = this->node_.advertiseService("read_single_io",
      &MotomanJointTrajectoryStreamer::readSingleIoCB, this);
  this->srv_write_single_io = this->node_.advertiseService("write_single_io",
      &MotomanJointTrajectoryStreamer::writeSingleIoCB, this);

inside this method,

bool MotomanJointTrajectoryStreamer::init(SmplMsgConnection* connection, const std::vector<std::string> &joint_names,
    const std::map<std::string, double=""> double> &velocity_limits)
{
...
}

}