Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'sim_controller_examples.py -m' throws: TypeError: 'NoneType' object is not subscriptable #22

Closed
Unn20 opened this issue Mar 30, 2022 · 2 comments

Comments

@Unn20
Copy link

Unn20 commented Mar 30, 2022

After running this script:

rosrun ur_control sim_controller_examples.py -m

I've got this error:

ft_sensor: True, ee_link: None, 
 robot_urdf: ur3e
Unknown attribute "iyx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_base_link']/inertial/inertia
Unknown attribute "izx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_base_link']/inertial/inertia
Unknown attribute "izy" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_base_link']/inertial/inertia
Unknown attribute "iyx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_knuckle_link']/inertial/inertia
Unknown attribute "izx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_knuckle_link']/inertial/inertia
Unknown attribute "izy" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_knuckle_link']/inertial/inertia
Unknown attribute "iyx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_knuckle_link']/inertial/inertia
Unknown attribute "izx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_knuckle_link']/inertial/inertia
Unknown attribute "izy" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_knuckle_link']/inertial/inertia
Unknown attribute "iyx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_finger_link']/inertial/inertia
Unknown attribute "izx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_finger_link']/inertial/inertia
Unknown attribute "izy" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_finger_link']/inertial/inertia
Unknown attribute "iyx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_finger_link']/inertial/inertia
Unknown attribute "izx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_finger_link']/inertial/inertia
Unknown attribute "izy" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_finger_link']/inertial/inertia
Unknown attribute "iyx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_inner_knuckle_link']/inertial/inertia
Unknown attribute "izx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_inner_knuckle_link']/inertial/inertia
Unknown attribute "izy" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_inner_knuckle_link']/inertial/inertia
Unknown attribute "iyx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_inner_knuckle_link']/inertial/inertia
Unknown attribute "izx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_inner_knuckle_link']/inertial/inertia
Unknown attribute "izy" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_inner_knuckle_link']/inertial/inertia
Unknown attribute "iyx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_finger_tip_link']/inertial/inertia
Unknown attribute "izx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_finger_tip_link']/inertial/inertia
Unknown attribute "izy" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_left_finger_tip_link']/inertial/inertia
Unknown attribute "iyx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_finger_tip_link']/inertial/inertia
Unknown attribute "izx" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_finger_tip_link']/inertial/inertia
Unknown attribute "izy" in /robot[@name='ur_robot_gazebo']/link[@name='robotiq_85_right_finger_tip_link']/inertial/inertia
Unknown tag "hardwareInterface" in /robot[@name='ur_robot_gazebo']/transmission[@name='robotiq_85_left_knuckle_trans']/actuator[@name='robotiq_85_left_knuckle_motor']
connecting to: /scaled_pos_joint_traj_controller/command
[INFO] [1648644789.700306, 3600.821000]: JointTrajectoryController initialized. ns: /
publish filtered wrench: /wrench/filtered
[ERROR] [1648644792.708880, 3603.709000]: Timed out waiting for /wrench/ topic
Traceback (most recent call last):
  File "sim_controller_examples.py", line 291, in <module>
    main()
  File "sim_controller_examples.py", line 263, in main
    gripper=args.gripper,  # Enable gripper
  File "/root/ros_ws/src/ros_ur3/ur_control/src/ur_control/arm.py", line 108, in __init__
    self._init_ft_sensor()
  File "/root/ros_ws/src/ros_ur3/ur_control/src/ur_control/arm.py", line 170, in _init_ft_sensor
    self.set_wrench_offset(override=False)
  File "/root/ros_ws/src/ros_ur3/ur_control/src/ur_control/arm.py", line 243, in set_wrench_offset
    self._update_wrench_offset()
  File "/root/ros_ws/src/ros_ur3/ur_control/src/ur_control/arm.py", line 174, in _update_wrench_offset
    self.wrench_offset = self.get_filtered_ft().tolist()
  File "/root/ros_ws/src/ros_ur3/ur_control/src/ur_control/arm.py", line 231, in get_filtered_ft
    for i in range(6)
  File "/root/ros_ws/src/ros_ur3/ur_control/src/ur_control/arm.py", line 231, in <listcomp>
    for i in range(6)
TypeError: 'NoneType' object is not subscriptable

For me looks like similar problem to the previous issue.
rosrun ur_control joint_position_keyboard.py
also works fine

@cambel
Copy link
Owner

cambel commented Mar 30, 2022

Hi @Unn20,

Sorry, this is the same error as #21
I finally sit down to fix it.

Please update the repository to its latest commit and try again.

@Unn20
Copy link
Author

Unn20 commented Apr 9, 2022

It works now ;). Thanks

@cambel cambel closed this as completed Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants