Skip to content

Commit bb5fee5

Browse files
committed
Remove planningserverclients from repository
1 parent 4217b54 commit bb5fee5

19 files changed

+46
-114
lines changed

CHANGELOG.md

Lines changed: 2 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,3 @@
1-
# 0.16.8 (2022-11-10)
1+
# 0.1.0 (2022-11-17)
22

3-
- Regenerate graph client.
4-
5-
6-
# 0.16.7 (2022-11-08)
7-
8-
- Regenerate graph client.
9-
10-
11-
# 0.16.6 (2022-11-01)
12-
13-
- Add `GetPackItemPoseInWorld` to support manual order processing.
14-
15-
16-
# 0.16.5 (2022-11-01)
17-
18-
- Add `UploadFiles` to support multi-file upload.
19-
20-
21-
# 0.16.3 (2022-11-07)
22-
23-
- Regenerate graph client.
24-
25-
26-
# 0.16.2 (2022-11-07)
27-
28-
- Regenerate graph client.
29-
30-
# 0.16.1 (2022-10-07)
31-
32-
- Remove `ExecuteTrajectory` method, to avoid dangerous usage. Instead, an ITL program (e.g. with `Move`) should be executed to ensure that the trajectory is collision-free.
33-
34-
35-
# 0.16 (2022-10-06)
36-
37-
- Remove `GetInertiaChildJointStartValues`
38-
39-
40-
# 0.15.9 (2022-09-30)
41-
42-
- Regenerate graph client.
43-
44-
45-
# 0.15.8 (2022-08-19)
46-
47-
- Allow controller client user to supply additional headers to be included in http requests.
48-
49-
50-
# 0.15.3 (2022-06-10)
51-
52-
- Removed `mujin_controllerclientpy_registerscene.py` script that is deprecated.
53-
- Add `DeleteConfig` api.
54-
55-
56-
# 0.15.2 (2022-05-10)
57-
58-
- Removed old functions and clients:
59-
- `itlplanningclient2.py` (`ITLPlanning2ControllerClient`) and `realtimeitlplanningclient.py` (`RealtimeITLPlanningControllerClient`) were removed. Use `realtimeitlplanning3client.py` (`RealtimeITLPlanning3ControllerClient`) instead.
60-
- `SendCurrentLayoutData` and `ResetCurrentLayoutData` were removed from `BinpickingControllerClient`.
61-
- `RunSceneTaskAsync` was removed from `PlanningControllerClient`. It is available via `ControllerClientBase`.
62-
63-
64-
# 0.15.1 (2022-04-27)
65-
66-
- Moved `ResetCachedRobotConfigurationState` to realtimerobotclient.
3+
- Port from mujincontrollerclientpy

MIGRATION.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +0,0 @@
1-
# From mujincontrollerclientpy to mujinplanningclient and mujinwebclient
2-
3-
## realtimeitlplanning3client
4-
5-
- `CheckITLProgramExists` has been removed. Use the webclient's `GetProgram` instead.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Mujin Controller Python Client Library
22

3-
![Build status](https://github.com/mujin/mujincontrollerclientpy/actions/workflows/python.yml/badge.svg)
3+
![Build status](https://github.com/mujin/mujinwebstackclientpy/actions/workflows/python.yml/badge.svg)
44

55
This is an open-source client library communicating with the Mujin Controller WebAPI.
66

@@ -16,7 +16,7 @@ This is an open-source client library communicating with the Mujin Controller We
1616

1717
## Running on Linux
1818

19-
Load mujincontrollerclient as a module in Python.
19+
Load mujinwebstackclient as a module in Python.
2020

2121

2222
## Install on Linux
@@ -42,12 +42,12 @@ virtualenv .ve
4242
# install required packages
4343
./.ve/bin/pip install six==1.16.0 requests==2.27.1 pyzmq==22.3.0 graphql-core==3.2.0 typing_extensions==4.2.0
4444

45-
# install mujincontrollerclient
45+
# install mujinwebstackclient
4646
./.ve/bin/pip install .
4747
```
4848

49-
Then, use the `mujin_controllerclientpy_generategraphclient.py` to generate the content of the `controllergraphclient.py` file.
49+
Then, use `mujin_webstackclientpy_generategraphclient.py` to generate the content of the `controllergraphclient.py` file.
5050

5151
```bash
52-
./.ve/bin/python devbin/mujin_controllerclientpy_generategraphclient.py --url http://controller123 > python/mujincontrollerclient/controllergraphclient.py
52+
./.ve/bin/python devbin/mujin_webstackclientpy_generategraphclient.py --url http://controller123 > python/mujinwebstackclient/controllergraphclient.py
5353
````

bin/mujin_controllerclientpy_applyconfig.py renamed to bin/mujin_webstackclientpy_applyconfig.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import argparse
88
import tempfile
99
import subprocess
10-
from mujincontrollerclient.controllerwebclientv1 import ControllerWebClientV1
10+
from mujinwebstackclient.webstackclient import WebstackClient
1111

1212
import logging
1313
log = logging.getLogger(__name__)
@@ -224,7 +224,7 @@ def _RunMain():
224224

225225
# construct client
226226
if options.controller:
227-
controllerwebclient = ControllerWebClientV1('http://%s' % options.controller, options.username, options.password)
227+
controllerwebclient = WebstackClient('http://%s' % options.controller, options.username, options.password)
228228
controllerwebclient.Ping()
229229
config = controllerwebclient.GetConfig()
230230
target = controllerwebclient.controllerIp

bin/mujin_controllerclientpy_downloaddata.py renamed to bin/mujin_webstackclientpy_downloaddata.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ def _ParseArguments():
2323
parser.add_argument('--timeout', type=float, default=600, help='Timeout in seconds (default: %(default)s)')
2424
return parser.parse_args()
2525

26-
def _CreateControllerWebClient(url, username, password):
27-
from mujincontrollerclient import controllerwebclientv1
26+
def _CreateWebstackClient(url, username, password):
27+
from mujinwebstackclient import webstackclient
2828

2929
# create a controller client for the controller
3030
log.info('connecting to %s', url)
31-
return controllerwebclientv1.ControllerWebClientV1(
31+
return webstackclient.WebstackClient(
3232
controllerurl=url,
3333
controllerusername=username,
3434
controllerpassword=password,
3535
)
3636

37-
def _GetScenes(controllerClient):
38-
from mujincontrollerclient import uriutils
37+
def _GetScenes(webClient):
38+
from mujinwebstackclient import uriutils
3939

4040
# get the conf file
41-
config = controllerClient.GetConfig()
41+
config = webClient.GetConfig()
4242

4343
# get the current scene uri from config
4444
sceneList = []
@@ -57,12 +57,12 @@ def _GetScenes(controllerClient):
5757

5858
return sceneList
5959

60-
def _DownloadBackup(controllerClient, sceneList, timeout=600.0):
60+
def _DownloadBackup(webClient, sceneList, timeout=600.0):
6161
import re
6262
import tarfile
6363

6464
log.info('downloading scenes %s and all configs', sceneList)
65-
response = controllerClient.Backup(
65+
response = webClient.Backup(
6666
saveconfig=True,
6767
backupscenepks=sceneList,
6868
timeout=timeout,
@@ -80,9 +80,9 @@ def _Main():
8080
options = _ParseArguments()
8181
_ConfigureLogging(options.loglevel)
8282

83-
controllerClient = _CreateControllerWebClient(options.url, options.username, options.password)
84-
sceneList = _GetScenes(controllerClient)
85-
_DownloadBackup(controllerClient, sceneList, timeout=options.timeout)
83+
webClient = _CreateWebstackClient(options.url, options.username, options.password)
84+
sceneList = _GetScenes(webClient)
85+
_DownloadBackup(webClient, sceneList, timeout=options.timeout)
8686

8787
if __name__ == "__main__":
8888
_Main()

bin/mujin_controllerclientpy_runregistrationtask.py renamed to bin/mujin_webstackclientpy_runregistrationtask.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import time
66
import datetime
77
import argparse
8-
from mujincontrollerclient.controllerwebclientv1 import ControllerWebClientV1
9-
from mujincontrollerclient import uriutils
8+
from mujinwebstackclient.webstackclient import WebstackClient
9+
from mujinwebstackclient import uriutils
1010

1111
import logging
1212
log = logging.getLogger(__name__)
@@ -47,7 +47,7 @@ def _RunMain():
4747
raise Exception('Have to sepecify either --syncMasterFile or --backup')
4848
taskName = 'registration-%s-%s' % (command.lower(), datetime.datetime.now().strftime('%Y%m%d-%H%M%S'))
4949

50-
controllerwebclient = ControllerWebClientV1(options.controllerUrl, options.controllerUsername, options.controllerPassword)
50+
controllerwebclient = WebstackClient(options.controllerUrl, options.controllerUsername, options.controllerPassword)
5151
controllerwebclient.Ping()
5252

5353
# cancel previous jobs

bin/mujin_controllerclientpy_runshell.py renamed to bin/mujin_webstackclientpy_runshell.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
from mujincontrollerclient.controllerwebclientv1 import ControllerWebClientV1
4+
from mujinwebstackclient.webstackclient import WebstackClient
55

66
import logging
77
log = logging.getLogger(__name__)
88

99

1010
def _ParseArguments():
1111
import argparse
12-
parser = argparse.ArgumentParser(description='Open a shell to use controllerclient')
12+
parser = argparse.ArgumentParser(description='Open a shell to use webstackclient')
1313
parser.add_argument('--loglevel', type=str, default=None, help='The python log level, e.g. DEBUG, VERBOSE, ERROR, INFO, WARNING, CRITICAL (default: %(default)s)')
1414
parser.add_argument('--url', type=str, default='http://localhost', help='URL of the controller (default: %(default)s)')
1515
parser.add_argument('--username', type=str, default='mujin', help='Username to login with (default: %(default)s)')
@@ -29,7 +29,7 @@ def _Main():
2929
options = _ParseArguments()
3030
_ConfigureLogging(options.loglevel)
3131

32-
self = ControllerWebClientV1(options.url, options.username, options.password)
32+
self = WebstackClient(options.url, options.username, options.password)
3333

3434
from IPython.terminal import embed
3535
ipshell = embed.InteractiveShellEmbed(config=embed.load_default_config())(local_ns=locals())

devbin/mujin_controllerclientpy_generategraphclient.py renamed to devbin/mujin_webstackclientpy_generategraphclient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _ConfigureLogging(level=None):
1818

1919
def _ParseArguments():
2020
import argparse
21-
parser = argparse.ArgumentParser(description='Open a shell to use controllerclient')
21+
parser = argparse.ArgumentParser(description='Open a shell to use webstackclient')
2222
parser.add_argument('--loglevel', type=str, default=None, help='The python log level, e.g. DEBUG, VERBOSE, ERROR, INFO, WARNING, CRITICAL (default: %(default)s)')
2323
parser.add_argument('--url', type=str, default='http://127.0.0.1', help='URL of the controller (default: %(default)s)')
2424
parser.add_argument('--username', type=str, default='mujin', help='Username to login with (default: %(default)s)')
@@ -27,7 +27,7 @@ def _ParseArguments():
2727

2828

2929
def _FetchServerVersionAndSchema(url, username, password):
30-
from mujincontrollerclient.controllerclientraw import ControllerWebClientRaw
30+
from mujinwebstackclient.controllerwebclientraw import ControllerWebClientRaw
3131
webClient = ControllerWebClientRaw(url, username, password)
3232
response = webClient.Request('HEAD', '/')
3333
serverVersion = response.headers['Server'].split()[0]

python/mujintestcontrollerclient/test_uriutils.py renamed to python/mujintestwebstackclient/test_uriutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import pytest
44

5-
from mujincontrollerclient import uriutils
5+
from mujinwebstackclient import uriutils
66

77

88
@pytest.mark.parametrize('uri, expected', [

python/mujintestcontrollerclient/test_controllerclientbase.py renamed to python/mujintestwebstackclient/test_webstackclient.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44
import requests_mock
55

6-
from python.mujincontrollerclient.webstackclient import WebstackClient
6+
from python.mujinwebstackclient.webstackclient import WebstackClient
77

88

99
@pytest.mark.parametrize('url, username, password', [
@@ -15,10 +15,10 @@
1515
def test_PingAndLogin(url, username, password):
1616
with requests_mock.Mocker() as mock:
1717
mock.head('%s/u/%s/' % (url, username))
18-
controllerclient = WebstackClient(url, username, password)
19-
controllerclient.Ping()
20-
controllerclient.Login()
21-
assert controllerclient.IsLoggedIn()
18+
webclient = WebstackClient(url, username, password)
19+
webclient.Ping()
20+
webclient.Login()
21+
assert webclient.IsLoggedIn()
2222

2323

2424
def test_RestartController():

python/mujincontrollerclient/__init__.py renamed to python/mujinwebstackclient/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def GetMonotonicTime():
3434

3535
try:
3636
import mujincommon.i18n
37-
ugettext, ungettext = mujincommon.i18n.GetDomain('mujincontrollerclientpy').GetTranslationFunctions()
37+
ugettext, ungettext = mujincommon.i18n.GetDomain('mujinwebstackclientpy').GetTranslationFunctions()
3838
except ImportError:
3939
def ugettext(message):
4040
return message

python/mujincontrollerclient/controllergraphclient.py renamed to python/mujinwebstackclient/controllergraphclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
33
# DO NOT EDIT, THIS FILE WAS AUTO-GENERATED
4-
# GENERATED BY: mujin_controllerclientpy_generategraphclient.py
4+
# GENERATED BY: mujin_webstackclientpy_generategraphclient.py
55
# GENERATED AGAINST: mujinwebstack/2.2.2.cc625fcf41b1fec2339b787f8b3adcd3af9f16c5-dirty
66
#
77

python/mujincontrollerclient/controllerwebclientraw.py renamed to python/mujinwebstackclient/controllerwebclientraw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
from . import _
2222
from . import json
23-
from . import APIServerError, ControllerClientError, ControllerGraphClientException
23+
from . import APIServerError, WebstackClientError, ControllerGraphClientException
2424

2525
import logging
2626
log = logging.getLogger(__name__)
@@ -98,7 +98,7 @@ def SetAuthor(self, author=None):
9898

9999
def Request(self, method, path, timeout=5, headers=None, **kwargs):
100100
if timeout < 1e-6:
101-
raise ControllerClientError(_('Timeout value (%s sec) is too small') % timeout)
101+
raise WebstackClientError(_('Timeout value (%s sec) is too small') % timeout)
102102

103103
url = self._baseurl + path
104104

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '0.17.0'
1+
__version__ = '0.1.0'
22

33
# Do not forget to update CHANGELOG.md

setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
from distutils.dist import Distribution
88

99
version = {}
10-
exec(open('python/mujincontrollerclient/version.py').read(), version)
10+
exec(open('python/mujinwebstackclient/version.py').read(), version)
1111

1212
setup(
1313
distclass=Distribution,
14-
name='mujincontrollerclient',
14+
name='mujinwebstackclient',
1515
version=version['__version__'],
16-
packages=['mujincontrollerclient'],
17-
package_dir={'mujincontrollerclient': 'python/mujincontrollerclient'},
16+
packages=['mujinwebstackclient'],
17+
package_dir={'mujinwebstackclient': 'python/mujinwebstackclient'},
1818
data_files=[
1919
# using scripts= will cause the first line of the script being modified for python2 or python3
2020
# put the scripts in data_files will copy them as-is
2121
('bin', [
22-
'bin/mujin_controllerclientpy_applyconfig.py',
23-
'bin/mujin_controllerclientpy_runshell.py',
24-
'bin/mujin_controllerclientpy_downloaddata.py',
22+
'bin/mujin_webstackclientpy_applyconfig.py',
23+
'bin/mujin_webstackclientpy_runshell.py',
24+
'bin/mujin_webstackclientpy_downloaddata.py',
2525
]),
2626
],
2727
locale_dir='locale',

0 commit comments

Comments
 (0)