After work "ros controller spawner", Have ": error: too few arguments"

asked 2022-02-07 07:32:46 -0500

yun gravatar image

updated 2022-02-07 07:40:58 -0500

Hello I have some error. Please help me.. :(

Environment:

  • ubuntu 18.04
  • melodic
  • Moveit

I try below code.

roslaunch rb5_moveit_config ros_controllers.launch

I got a below error

usage: spawner [-h] [--stopped] [--wait-for topic] [--namespace ns]
           [--timeout T] [--no-timeout]
           [--shutdown-timeout SHUTDOWN_TIMEOUT]
           controller [controller ...] spawner: error: too few arguments

How can I solved it..? If you know this error code, please tell me solution.

The code is below

kim@kim:~$ roslaunch rb5_moveit_config ros_controllers.launch WARNING: Package name "object_detection_with_intel_D415" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes. ... logging to /home/kim/.ros/log/ee89542e-8816-11ec-904b-40b076dd2030/roslaunch-kim-24283.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

WARNING: Package name "object_detection_with_intel_D415" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes. started roslaunch server http://localhost:33821/

SUMMARY

PARAMETERS * /controller_list: [{'default': True... * /generic_hw_control_loop/cycle_time_error_threshold: 0.01 * /generic_hw_control_loop/loop_hz: 300 * /hardware_interface/joints: ['base', 'shoulde... * /hardware_interface/sim_control_mode: 1 * /joint_state_controller/publish_rate: 50 * /joint_state_controller/type: joint_state_contr... * /moveit_sim_hw_interface/joint_model_group: RB5 * /moveit_sim_hw_interface/joint_model_group_pose: Home * /rosdistro: melodic * /rosversion: 1.14.12

NODES / controller_spawner (controller_manager/spawner)

auto-starting new master process[master]: started with pid [24298] ROS_MASTER_URI=http://localhost:11311

setting /run_id to ee89542e-8816-11ec-904b-40b076dd2030 WARNING: Package name "object_detection_with_intel_D415" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes. process[rosout-1]: started with pid [24314] started core service [/rosout] process[controller_spawner-2]: started with pid [24321] usage: spawner [-h] [--stopped] [--wait-for topic] [--namespace ns] [--timeout T] [--no-timeout] [--shutdown-timeout SHUTDOWN_TIMEOUT] controller [controller ...] spawner: error: too few arguments [controller_spawner-2] process has died [pid 24321, exit code 2, cmd /home/kim/catkin_ws/src/ros_control/controller_manager/scripts/spawner __name:=controller_spawner __log:=/home/kim/.ros/log/ee89542e-8816-11ec-904b-40b076dd2030/controller_spawner-2.log]. log file: /home/kim/.ros/log/ee89542e-8816-11ec-904b-40b076dd2030/controller_spawner-2*.log ^C[rosout-1] killing on exit ^C[master] killing on exit ^C^Cshutting down processing monitor... ... shutting down processing monitor complete done

edit retag flag offensive close merge delete

Comments

What project are you using? Could you link it? It seems that controller_manageris incorrect configured - http://wiki.ros.org/controller_manager and https://github.com/ros-controls/ros_c... are good places to start with tracing to find the bug in parameters. I have found this resolved issue with the same problem too there. P.S. Edit and format your question better, please.

ljaniec gravatar image ljaniec  ( 2022-02-07 08:13:04 -0500 )edit

I used ros_controller.launch below my code

<launch>

<rosparam file="$(find rb5_moveit_config)/config/ros_controllers.yaml" command="load"/>

<node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args=""/>

</launch>

yun gravatar image yun  ( 2022-02-07 08:16:47 -0500 )edit

I tried moveit and created gazebo.launch file.

yun gravatar image yun  ( 2022-02-07 08:18:28 -0500 )edit
1

I just added "joint_state_controller" to "args" and it gave no errors! I'm not sure, it seems to have been resolved! thank you so much!

yun gravatar image yun  ( 2022-02-07 08:25:12 -0500 )edit