ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2014-04-08 22:02:05 -0500 | received badge | ● Famous Question (source) |
2014-03-10 06:43:20 -0500 | received badge | ● Notable Question (source) |
2014-02-07 07:09:30 -0500 | received badge | ● Scholar (source) |
2014-02-07 07:09:22 -0500 | commented answer | Error creating array type custom message for ros service in python Thank you so much Mike. That fixed it. Just to let others know, I added goals=nuric_system.srv.HighLevelGoalsRequest() which gave me NameError: global name 'nuric_system' is not defined Then I changed from nuric_system.srv import HighLevelGoals to from nuric_system.srv import * And that was it!! |
2014-02-07 07:04:06 -0500 | received badge | ● Supporter (source) |
2014-02-07 05:12:17 -0500 | received badge | ● Popular Question (source) |
2014-02-03 12:36:05 -0500 | received badge | ● Editor (source) |
2014-02-03 12:33:26 -0500 | asked a question | Error creating array type custom message for ros service in python Hey, I m trying to create a script that sends a service message to the server. Everything is good on the server side but I'm trying to build the client side using Python, just to get familiar with Python. However, with my limited knowledge of Python, building complex msgs is proving rather difficult. I have HighLevelGoals.srv under nuric_sytem which is an array of HighLevelGoal.msg. HighLevelGoals.srv *HighLevelGoal[] goals bool result* HighLevelGoal.msg geometry_msgs/PoseStamped goal_pose string goal_source My basic code is: when I run it, I get the following error : But HighLevelGoals.srv does have a goals array which should be the same as goal_1 type. Clearly, Im not creating the message correctly. If anyone has any link for appropriate filling of msg arrays, please let me know. Regards |