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

Your Computecubics method takes param as input, but you're using pub_param in the function code. Replace pub_param with param, and you're good to go !

Also here are some advice:

  • try to follow the pep8 and Ros code style for python. Also use CamelCase names forros msg and srv
  • in node 1: create your publisher after the rospy.init
  • in node2:
    • you're creating a ServiceProxy but not saving it into a variable. You'll need it if you want to use it later
    • you are saving your publisher in the param variable instead of the coeffs. try using more self-explanatory variable names