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

octavian's profile - activity

2014-07-09 02:20:21 -0500 received badge  Famous Question (source)
2014-01-20 01:15:29 -0500 received badge  Notable Question (source)
2013-11-29 08:46:47 -0500 received badge  Popular Question (source)
2013-09-22 08:20:09 -0500 received badge  Scholar (source)
2013-09-21 04:04:59 -0500 commented answer can't create actionlib client

Thanks for the response. That was pretty silly of me to overlook that. I'll be more scrupulous next time :)

2013-09-20 10:01:03 -0500 received badge  Editor (source)
2013-09-20 09:57:54 -0500 asked a question can't create actionlib client

Hey, I'm kinda new to this as well as c++ so plz bear with me. I'm trying to get a simple_action_client working in roscpp, but cant seem get the template constructor to accept my action. Here's an example:

#include <ros/ros.h>
#include <control_msgs/JointTrajectoryAction.h>
#include <actionlib/client/simple_action_client.h>

typedef  actionlib::SimpleActionClient<control_msgs::JointTrajectoryAction> Client_t;

int main(int argc, char **argv)
{
  ros::init(argc, argv, "move_joints", ros::init_options::AnonymousName);
  ros::NodeHandle nh
  ros::AsyncSpinner spinner(1);
  spinner.start();
  Client_t client;
[  ....   ]

It's giving me a "no matching function" error for the client typdef. Looking at the api documentation does not tell me much. I'm confused as an equivalent python script such as the following works just fine:

import rospy
import actionlib
from control_msgs.msg import *
from trajectory_msgs.msg import *

def main():
   rospy.init_node("move_joints", anonymous=True, disable_signals=True)
   client = actionlib.SimpleActionClient('follow_joint_trajectory',FollowJointTrajectoryAction)
  [...]

Any suggestions?

2013-08-22 13:31:28 -0500 commented answer Invalid node name gazeboo when trying to launch gazebo empty world

I had the same issue and tried your suggestion above. Do you perform a 'rosmake -a' afterwards in order to compile?

2013-08-01 05:42:43 -0500 received badge  Supporter (source)