Skip to content

Issue with Server-Client Setup #19

Open
@abadithela

Description

@abadithela

Hi,

We're trying to get the robot controller setup but are running into a few issues (the second one is the bottleneck)

  1. First, when we try to command "go_sleep" after setting up the Dockerfile, docker compose exec robonet bash -lic "go_sleep", we get the error:
WARN[0000] /home/iromlab/Desktop/bridge_data_robot/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion 
Traceback (most recent call last):
  File "/usr/local/bin/go_sleep", line 4, in <module>
    from widowx_envs.widowx_env import StateReachingWidowX
  File "/home/robonet/interbotix_ws/src/widowx_envs/widowx_envs/widowx_env.py", line 8, in <module>
    from widowx_envs.base.robot_base_env import RobotBaseEnv
  File "/home/robonet/interbotix_ws/src/widowx_envs/widowx_envs/base/robot_base_env.py", line 3, in <module>
    from widowx_envs.control_loops import Environment_Exception
  File "/home/robonet/interbotix_ws/src/widowx_envs/widowx_envs/control_loops.py", line 8, in <module>
    from widowx_envs.utils.image_utils import npy_to_gif, npy_to_mp4, resize_store
  File "/home/robonet/interbotix_ws/src/widowx_envs/widowx_envs/utils/image_utils.py", line 2, in <module>
    import moviepy.editor as mpy
  File "/home/robonet/myenv/lib/python3.8/site-packages/moviepy/__init__.py", line 4, in <module>
    from moviepy.audio import fx as afx
  File "/home/robonet/myenv/lib/python3.8/site-packages/moviepy/audio/fx/__init__.py", line 5, in <module>
    from moviepy.audio.fx.AudioDelay import AudioDelay
  File "/home/robonet/myenv/lib/python3.8/site-packages/moviepy/audio/fx/AudioDelay.py", line 5, in <module>
    from moviepy.audio.AudioClip import CompositeAudioClip
  File "/home/robonet/myenv/lib/python3.8/site-packages/moviepy/audio/AudioClip.py", line 13, in <module>
    from moviepy.audio.io.ffmpeg_audiowriter import ffmpeg_audiowrite
  File "/home/robonet/myenv/lib/python3.8/site-packages/moviepy/audio/io/ffmpeg_audiowriter.py", line 7, in <module>
    from moviepy.config import FFMPEG_BINARY
  File "/home/robonet/myenv/lib/python3.8/site-packages/moviepy/config.py", line 7, in <module>
    from moviepy.tools import cross_platform_popen_params
  File "/home/robonet/myenv/lib/python3.8/site-packages/moviepy/tools.py", line 251, in <module>
    ) -> tuple[int, int]:
TypeError: 'type' object is not subscriptable

To get around this, we changed the version of moviepy by running pip install moviepy==1.0.0. There were a few other dependency issues with scipy and scikit-image that we could resolve. We're trying to make these fixes in the Dockerfile itself instead of having to fix this each time we start the container. Is there an updated Dockerfile that addresses this?

  1. Next, we try to setup the server-client architecture, with the client and the server running on the same machine. The server starts up OK but there is an issue with the client:
Waiting for robot to be ready...
WARNING:root:Failed to send message: Resource temporarily unavailable
DEBUG:root:WARNING: No res from server. reset socket.
Waiting for robot to be ready...
WARNING:root:Failed to send message: Resource temporarily unavailable
DEBUG:root:WARNING: No res from server. reset socket.
Waiting for robot to be ready...
WARNING:root:Failed to send message: Resource temporarily unavailable
DEBUG:root:WARNING: No res from server. reset socket.
Waiting for robot to be ready...
WARNING:root:Failed to send message: Resource temporarily unavailable
DEBUG:root:WARNING: No res from server. reset socket.
Waiting for robot to be ready...
WARNING:root:Failed to send message: Resource temporarily unavailable
DEBUG:root:WARNING: No res from server. reset socket.
Waiting for robot to be ready...
WARNING:root:Failed to send message: Resource temporarily unavailable
DEBUG:root:WARNING: No res from server. reset socket.
Waiting for robot to be ready...
WARNING:root:Failed to send message: Resource temporarily unavailable
DEBUG:root:WARNING: No res from server. reset socket.
Waiting for robot to be ready...
WARNING:root:Failed to send message: Resource temporarily unavailable
DEBUG:root:WARNING: No res from server. reset socket.

The instructions mention that the robot should be executing some pre-determined movements but we do not see this. Your help in resolving this is greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions