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

[Collision detector] Add a conf file for the robot that was installed before 2015. #335

Open
wants to merge 1 commit into
base: indigo-devel
Choose a base branch
from

Conversation

130s
Copy link
Contributor

@130s 130s commented Jun 7, 2017

Issue
An error about CollisionDetector such as below or similar might be happening constantly, even though the path in MODEL_FILE is correct.

$ roslaunch nextage_ros_bridge nextage_ros_bridge_real.launch MODEL_FILE:=/opt/jsk/etc/HIRONX/model/main.wrl

or

$ roslaunch nextage_ros_bridge nextage_ros_bridge_real.launch MODEL_FILE:=/opt/jsk/etc/HIRONX/model/main.wrl nameserver:=nextage
:
[WARN] [WallTime: 1495434563.800814] Could not found CollisionDetector(CollisionDetector0), waiting...

Cause
In nextage_ros_bridge/conf/realrobot_fixedpath.con (that is passed from nextage_ros_bridge_real.launch) the model file location is hardcoded as:

model: file:///opt/jsk/etc/NEXTAGE/model/main.wrl

But this path does not exist for robots that were installed earlier (unless robot owners changed by themselves).

Workaround
With this commit, you'll be able to specify a correct conf file like this:

roslaunch nextage_ros_bridge nextage_ros_bridge_real.launch MODEL_FILE:=/opt/jsk/etc/HIRONX/model/main.wrl nameserver:=nextage CONF_FILE_COLLISIONDETECT:=`rospack find nextage_ros_bridge`/conf/realrobot_fixedpath_-2015.conf

@130s 130s force-pushed the fix/collidetect_fail_realrobot branch from 7581cc3 to 38533b4 Compare June 7, 2017 19:45
… before 2015.

**Issue**
An error about `CollisionDetector` such as below or similar might be happening constantly, even though the path in `MODEL_FILE` is correct.
```
$ roslaunch nextage_ros_bridge nextage_ros_bridge_real.launch MODEL_FILE:=/opt/jsk/etc/HIRONX/model/main.wrl

or

$ roslaunch nextage_ros_bridge nextage_ros_bridge_real.launch MODEL_FILE:=/opt/jsk/etc/HIRONX/model/main.wrl nameserver:=nextage
:
[WARN] [WallTime: 1495434563.800814] Could not found CollisionDetector(CollisionDetector0), waiting...
```

**Cause**
In [nextage_ros_bridge/conf/realrobot_fixedpath.con](https://github.com/tork-a/rtmros_nextage/blob/a1c21751189a6ea5244519d34f560f288a3d94f9/nextage_ros_bridge/conf/realrobot_fixedpath.conf#L3) (that is passed from [nextage_ros_bridge_real.launch](https://github.com/tork-a/rtmros_nextage/blob/a1c21751189a6ea5244519d34f560f288a3d94f9/nextage_ros_bridge/launch/nextage_ros_bridge_real.launch#L3)) the model file location is hardcoded as:
```
model: file:///opt/jsk/etc/NEXTAGE/model/main.wrl
```

But this path does not exist for robots that were installed earlier (unless robot owners changed by themselves).

**Workaround**
With this commit, you'll be able to specify a correct conf file like this:

```
roslaunch nextage_ros_bridge nextage_ros_bridge_real.launch MODEL_FILE:=/opt/jsk/etc/HIRONX/model/main.wrl nameserver:=nextage CONF_FILE_COLLISIONDETECT:=`rospack find nextage_ros_bridge`/conf/realrobot_fixedpath_-2015.conf
```
@130s 130s force-pushed the fix/collidetect_fail_realrobot branch from 38533b4 to be0a388 Compare June 7, 2017 19:46
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

Successfully merging this pull request may close these issues.

1 participant