报错内容
ImportError: dynamic module does not define module export function
(PyInit__moveit_roscpp_initializer)
我环境中的python版本是3.9版本,我在使用编程来进行轨迹规划时的代码
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2019 Wuhan PS-Micro Technology Co., Itd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import rospy, sys
import moveit_commander
class MoveItFkDemo:
def __init__(self):
# 初始化move_grou

在尝试使用Python3运行ROS Melodic中的MoveIt时遇到ImportError,原因是MoveIt在ROS Melodic中默认使用Python2。解决方法是将Python解释器切换到Python2。代码示例中展示了如何初始化和使用MoveIt进行轨迹规划,但遇到了与ROS版本不兼容的问题。
最低0.47元/天 解锁文章
4218

被折叠的 条评论
为什么被折叠?



