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

Add Task's setRobotModel to python binding #621

Open
wants to merge 1 commit into
base: ros2
Choose a base branch
from

Conversation

JafarAbdi
Copy link
Member

I was testing this with moveit2's python binding and got the following error subsolutions refer to multiple robot models when using a planning scene from MoveItPy.

@rhaschke
Copy link
Contributor

Can you please provide the code causing issues with this? Probably, different RobotModel instances are in use...

@JafarAbdi
Copy link
Member Author

Here is the code-snippet

task = core.Task()
# This fails
# task.loadRobotModel(node)
# This works
task.setRobotModel(planning_scene.robot_model)

task.name = "pick + place"

pipeline = core.PipelinePlanner(node, "ompl", "RRTConnectkConfig")
planners = [(arm, pipeline), (eef, pipeline)]

fixed_state = stages.FixedState("current")
fixed_state.setState(planning_scene)
task.add(fixed_state)

# Connect the two stages
task.add(stages.Connect("connect", planners))

Note that I'm using a planning scene constructed with MoveItPy, I think it's because we only check for the memory location in merge.cpp

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.

2 participants