[proposal] Add class for single link model. #321
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is just a proposal to add class for single link model
(related with @furushchev dinner discussion).
This is originally from https://github.com/jsk-ros-pkg/jsk_demos/blob/master/jsk_2015_06_hrp_drc/drc_task_common/euslisp/drc-testbed-models.l#L9.
This is used for creating single rigid body object model.
In this PR, I added
single-link-modelclass, but I think adding function to create single link model is another solution.@furushchev
FYI, in euslisp, robot models and object models should be defined as
cascaded-linkclass (or its subclass).Even if simple shape (like
make-cube) and single rigid body object,it would be better to define it as
cascaded-linkinstead ofbodyorbodysetclass.In
euslib/rbrain, object models were defined as bothrobot-object(old style object model class) andbodyorbodysetclass.It was very confusing.
Since used methods are quite different between
robot-objectandbody, some codes forrobot-objectdid not work forbodyand it was difficult to generalize codes.In euslisp,
body,bodyset,faceset, ... classes have geometric shape information.bodyset-linkclass has shape information and mass information and this class corresponds to so coldlinkin robotics fields.cascaded-linkclass includeslinks,joints, and some other semantic information and this class corresponds torobotandobject.So, it would be better to define object model as
cascaded-linkclass.The codes in this PR may be minimal codes to define
cascaded-linkclass with single link.