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

Cannot send zero command to translate_mobile_base joint #124

Open
hello-binit opened this issue May 2, 2024 · 0 comments
Open

Cannot send zero command to translate_mobile_base joint #124

hello-binit opened this issue May 2, 2024 · 0 comments

Comments

@hello-binit
Copy link
Contributor

hello-binit commented May 2, 2024

This issue was reported by a Stretch user that discovered sending a zero command to the "translate_mobile_base" joint causes the driver to throw the following error:

[stretch_driver-3] [INFO] [1714621166.544765799] [joint_trajectory_action]: Received goal request
[stretch_driver-3] [INFO] [1714621166.547108618] [stretch_driver]: stretch_driver joint_traj action: New trajectory received with joint_names = ['translate_mobile_base']
[stretch_driver-3] [ERROR] [1714621166.547873219] [stretch_driver]: Error raised in execute callback: cannot unpack non-iterable NoneType object
[stretch_driver-3] Traceback (most recent call last):
[stretch_driver-3]   File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/action/server.py", line 325, in _execute_goal
[stretch_driver-3]     execute_result = await await_or_execute(execute_callback, goal_handle)
[stretch_driver-3]   File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/executors.py", line 107, in await_or_execute
[stretch_driver-3]     return callback(*args)
[stretch_driver-3]   File "/home/hello-robot/ament_ws/install/stretch_core/lib/python3.10/site-packages/stretch_core/joint_trajectory_server.py", line 182, in execute_cb
[stretch_driver-3]     c.init_execution(self.node.robot, robot_status)
[stretch_driver-3]   File "/home/hello-robot/ament_ws/install/stretch_core/lib/python3.10/site-packages/stretch_core/command_groups.py", line 649, in init_execution
[stretch_driver-3]     (_, mobile_base_error_m), (_, mobile_base_error_rad) = self.update_execution(robot_status)
[stretch_driver-3] TypeError: cannot unpack non-iterable NoneType object

This issue is reproducible using:

  1. Launch Stretch Driver on the robot: ros2 launch stretch_core stretch_driver.launch.py
  2. Run the following code: https://gist.github.com/hello-binit/4eee80b0c3842aa2e55eba9b535e5ce3
  3. Changing the 0.0 to 0.0001 in this script will make it so the exception does not appear.
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

1 participant