Skip to content

Commit

Permalink
fix(arcor2_arserver): ik and fk RPCs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZdenekM authored and ZdenekM committed Jan 23, 2024
1 parent b7050f9 commit fe168dd
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The following video by [Kinali](https://www.kinali.cz/en/) shows the use case (o

[README](src/python/arcor2_arserver/README.md) | [CHANGELOG](src/python/arcor2_arserver/CHANGELOG.md)

- 2023-07-20: [1.1.0](https://github.com/robofit/arcor2/releases/tag/arcor2_arserver%2F1.1.0) ([docker](https://hub.docker.com/r/arcor2/arcor2_arserver/tags?page=1&ordering=last_updated&name=1.1.0), [pypi](https://pypi.org/project/arcor2-arserver/1.1.0/)).
- 2024-01-23: [1.1.1](https://github.com/robofit/arcor2/releases/tag/arcor2_arserver%2F1.1.1) ([docker](https://hub.docker.com/r/arcor2/arcor2_arserver/tags?page=1&ordering=last_updated&name=1.1.1), [pypi](https://pypi.org/project/arcor2-arserver/1.1.1/)).

### arcor2_arserver_data

Expand Down
2 changes: 1 addition & 1 deletion compose-files/fit-demo/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.8'

services:
fit-demo-arserver:
image: arcor2/arcor2_arserver:1.1.0
image: arcor2/arcor2_arserver:1.1.1
container_name: fit-demo-arserver
depends_on:
fit-demo-project:
Expand Down
2 changes: 1 addition & 1 deletion src/docker/arcor2_arserver/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
shell_source(name="start.sh", source="start.sh")

docker_image(
name="arcor2_arserver", repository="arcor2/arcor2_arserver", dependencies=[":start.sh"], image_tags=["1.1.0"]
name="arcor2_arserver", repository="arcor2/arcor2_arserver", dependencies=[":start.sh"], image_tags=["1.1.1"]
)
6 changes: 6 additions & 0 deletions src/python/arcor2_arserver/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [1.1.1] - 2024-01-23

### Fixed

- `InverseKinematics` and `ForwardKinematics` RPCs were always returning `Object not found` error.

## [1.1.0] - 2023-07-20

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/python/arcor2_arserver/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.1.1
4 changes: 2 additions & 2 deletions src/python/arcor2_arserver/rpc/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ async def move_to_action_point_cb(req: srpc.r.MoveToActionPoint.Request, ui: WsC
async def ik_cb(req: srpc.r.InverseKinematics.Request, ui: WsClient) -> srpc.r.InverseKinematics.Response:
glob.LOCK.scene_or_exception()

async with ctx_read_lock([req.args.robot_id, req.args.end_effector_id], glob.USERS.user_name(ui)):
async with ctx_read_lock(req.args.robot_id, glob.USERS.user_name(ui)):
ensure_scene_started()
robot_inst = get_robot_instance(req.args.robot_id)
await check_feature(robot_inst, Robot.inverse_kinematics.__name__)
Expand All @@ -404,7 +404,7 @@ async def ik_cb(req: srpc.r.InverseKinematics.Request, ui: WsClient) -> srpc.r.I
async def fk_cb(req: srpc.r.ForwardKinematics.Request, ui: WsClient) -> srpc.r.ForwardKinematics.Response:
glob.LOCK.scene_or_exception()

async with ctx_read_lock([req.args.robot_id, req.args.end_effector_id], glob.USERS.user_name(ui)):
async with ctx_read_lock(req.args.robot_id, glob.USERS.user_name(ui)):
ensure_scene_started()
robot_inst = get_robot_instance(req.args.robot_id)
await check_feature(robot_inst, Robot.forward_kinematics.__name__)
Expand Down

0 comments on commit fe168dd

Please sign in to comment.