Closed Milliau closed 8 years ago
Can you post the urdf, yaml, and launch files you are using? Yes, it is in the example files. It looks like your yaml file is not being found.
Yes, it's the same code like her [(https://github.com/RIVeR-Lab/epos_hardware/tree/indigo-devel/epos_hardware/launch)]
The launch file:
<launch>
<param name="robot_description" textfile="$(find epos_hardware)/launch/example.urdf" />
<node name="epos_hardware" pkg="epos_hardware" type="epos_hardware_node" args="my_joint_actuator">
<rosparam command="load" file="$(find epos_hardware)/launch/example.yaml" /> </node>
<node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="joint_state_controller velocity_controller"/>
<param name="velocity_controller/type" value="velocity_controllers/JointVelocityController" />
<param name="velocity_controller/joint" value="test_joint" />
<param name="position_controller/type" value="position_controllers/JointPositionController" />
<param name="position_controller/joint" value="test_joint" />
<param name="joint_state_controller/type" value="joint_state_controller/JointStateController" />
<param name="joint_state_controller/publish_rate" value="50" />
</launch>
The URDF
`<?xml version="1.0"?>
Try getting rid of the 0x in front of the motor serial number. You are communicating over USB, correct?
I tryed it with 0x an without. I Communication with USB when i make rosrun epos_hardware list_devices I can See my Node and find THW serial Number. So i think The Communication works
@Milliau, I advise you to keep running roslaunch epos_hardware example.launch
but with a small modification.
In that launch file example.launch
: https://github.com/RIVeR-Lab/epos_hardware/blob/indigo-devel/epos_hardware/launch/example.launch#L3, just add output="screen"
to the node epos_hardware.
So it should be like this:
<node name="epos_hardware" pkg="epos_hardware" type="epos_hardware_node" args="my_joint_actuator" output="screen">
That way you will see the ROS_INFO and ROS_ERROR while launching correctly your motor.
@JimmyDaSilva Thanks for the idea, i think the Problem is the CanOpen Communication, i tryed to configure it with EPOS Studio but it not work, to you know if it is necessary to configure the controller in Epos Studio? I have 2 Motors, they are connected to each other by CAn and the Node 1 is connected by USB to the computer
@Milliau Yes you should configure the card in Epos Studio firts. You need to configure the communication, and the controller with the tuning. It's going to save the parameters on the card. If you are not able to make the motor move with Epos Studio it's almost certain that you won't be able to move it with the ROS node.
@JimmyDaSilva I can move them in Epos but not together, so i will try to get the CanOpen Communcation work,... Thanks for your help.
As Jimmy said, you have to get them working in Windows first. I know that getting the CAN ID's set properly took us awhile to figure out. Are you setting them using the DIP switches on the EPOS2? What are they set to?
I solved the problem by changing the Parameters, thanks for your help
Hello @Milliau , please, could you tell me which parameters did you change? I'm having problems with the packages too.
$ rosrun epos_hardware epos_hardware_node my_joint_actuator [ INFO] [1473763425.747526820]: Loading EPOS: my_joint_actuator [ERROR] [1473763425.752502324]: You must specify an actuator name [ERROR] [1473763425.753633507]: You must specify a serial number [ERROR] [1473763425.754717761]: You must specify an operation mode [ INFO] [1473763425.754763438]: [ INFO] [1473763425.824794032]: Initializing Motors [ERROR] [1473763425.824924309]: Not Initializing: 0x0, initial construction failed [ERROR] [1473763425.824983283]: Could not configure motor: my_joint_actuator [FATAL] [1473763425.825029568]: Failed to initialize motors
Thank you very much
@grafoteka so I found out that some parameter have a max. Number, so the niminal current can't be over 10.000.
Thank you for your reply @Milliau I have set the max_output_current to 9.0 as my datasheet indicates. I have a little progress and now I have the next warnings and errors:
[ INFO] [1473784916.252868236]: Found Motor
[ WARN] [1473784916.295778307]: No torque constant specified, you can supply one using the 'torque_constant' parameter
[ INFO] [1473784916.295879158]: Configuring Motor
[ INFO] [1473784916.396609254]: Configuring Sensor
[ INFO] [1473784916.478169101]: Configuring Safety
[ERROR] [1473784916.535399176]: Failed to SetMaxAcceleration
[ERROR] [1473784916.535474695]: Could not configure motor: my_joint_actuator
[FATAL] [1473784916.535516948]: Failed to initialize motors
Hey, I'm new at ROS and have Problems using epos_hardware. I've installed Ubuntu 14.04 und ROS Indigo. When i make
roslaunch epos_hardware example.launch
I get 3 ERRORSI changed the serial number in the example.yamle and tried it with 0x and without.
When I try to make it with
rosrun epos_hardware epos_hardware_node my_joint_actuator
I get also 3 errors:Where i define the motor name? I think's it in the example files, is this right?
Thanks for your help