iiwa_stack icon indicating copy to clipboard operation
iiwa_stack copied to clipboard

setSmartServoJointSpeedLimits server does not spawn

Open bingogome opened this issue 4 years ago • 1 comments

Hi,

I am wondering if anyone had problem with configuring the speed. In my case, it seems that setSmartServoJointSpeedLimits server does not spawn. A problem with my SmartServo package perhaps?

` int main(int argc, char** argv){ ros::init(argc, argv, "testMoveNode"); ros::NodeHandle nh; TestMoveNode testMoveNode(&nh); std::string rbt_name = "iiwa";

ROS_INFO("main: starting testMoveNode");
iiwa_ros::service::PathParametersService pp_service;
pp_service.init(rbt_name);

iiwa_ros::command::JointPosition jp_command;
jp_command.init(rbt_name);

iiwa_ros::command::CartesianPose cp_command;
cp_command.init(rbt_name);

ROS_INFO("setting destination");

// [..........] ros::Rate loop_rate(10); while(ros::ok()) {

	jp_command.setPosition(jp_test);
	// cp_command.setPose(cp);
	
	pp_service.setSmartServoJointSpeedLimits(relative_vel, relative_vel);
	ros::spinOnce();
	loop_rate.sleep();
}
return 0;

} `

Image-2 unnamed

bingogome avatar Jan 29 '21 16:01 bingogome

Hello,

I have the same problem. Before, my c++ code was working fine and I could set joints speed but suddenly it started giving this error. The code runs normally but I have no control over the speed. It is always set to the default. Did you manage to find a solution to this problem?

Thanks in advance.

zizowasfy avatar Dec 21 '21 14:12 zizowasfy