-
Notifications
You must be signed in to change notification settings - Fork 23
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
Unable to open urdf or xacro with CROSS #4
Comments
Also the installation instructions url in the FreeCAD Custom Repository should be : |
Importing a URDF or xacro file requires ROS (i.e. calling What do you mean with he FreeCAD Custom Repository? |
Tnx, yes I understand the importance of the source command for any terminal instance running any ROS 2 functions. So I include the source command in my .bashrc file. I also realize that I cannot use Freecad with your freecad.cross Addon in my native MAC as it does not have an installed ROS 2.I believe I correctly configured freecad.cross in my Ubuntu 22.04 FreeCAD .21.1 using the procedure in your https://github.com/galou/freecad.cross/tree/main Readme.The freecad.cross Addon is in Preferences/Addon Manager and Tools/Addon Manager and appears to be installed , but gives the error “not finding urdf_parser_py package”, which is installed on my machine in the /opt/ros/humble package folder.I believe my problem is that I am unable to run Freecad (configured with freecad.cross ) as a command line executable from my ros workspace terminal root. This ver 21 Freecad is only available downloaded on a Ubuntu aarch64 machine as an AppImage file and run ./freecad.AppImage from the Download folder.I’m trying now to configure Freecad to run from a command line terminal anywhere. Any suggestions or links to helpful ***@***.*** Nov 28, 2023, at 2:57 AM, Gaël Écorchard ***@***.***> wrote:
Importing a URDF or xacro file requires ROS (i.e. calling source /opt/ros/humble/setup.bash, for example, and launching FreeCAD from the same terminal).
What do you mean with he FreeCAD Custom Repository?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I corrected the urdf_parser_py error by installing $ sudo apt install ros-humble-urdfom-py. I also copied the freeCAD launch file into |
Launch the AppImage from the terminal is also working. It doesn't matter from which directory you launch FreeCAD, the required Python modules and ROS packages are found from some environment variables. There's no need to copy any FreeCAD launch file (which I don't know what it is) anywhere. CROSS uses the |
Even after sourcing the ~/mtc_ws workspace, there is no ROS_WORKSPACE variable. SO I executed $ export ROS_WORKSPACE=/home/ubuntbc/mtc_ws , which sets it. I tried your suggestion on my Ubuntu 22.04 ~/mtc_ws workspace which contains the "description" package urdf and xacro files.I sourced this mtc_ws workspace in the terminal from $ mtc_ws/ . install/setup.bash" . I can display the description package name with the "$ ros2 pkg list|grep description" command. So I launch freeCAD that has the CROSS Addon installed in this terminal. If I Open & browse to the workspace src/...urdf directory or the workspace install/share ... urdf directory I cannot open a .xacro or .urdf file. Attached is a capture of the freeCAD Open dialog noteing there is no .xacro or urdf is avaialnle to open in this list: |
You cannot open any URDF or xacro file this way (I mean through FreeCAD's "Open..." command), you have to use the dedicated button in CROSS's toolbar. I know, the documentation is lacking (help welcome). The reason for this (for now) is precisely the requirement that ROS must be sourced and the appropriate environment variables available in FreeCAD. |
After launching FreeCAD p[rogram (./FreeCAD_0.21.1-Linux-aarch64.AppImag ) from a ROS sourced Terminal, navigating to Menu Bar>View>Workbench>CROSS able to open a xacro file in a sourced linorobot2_ws robot workspace. Thank you as this should be very useful. I will create a "FeeCAD-CROSS Install & Run Cheatsheet". for my use and forward to you. |
Great, thanks for this document in advance. |
I edited my previous post because I realized that freeCAD-CROSS generated errors because I believe it can only import a "description package" urdf or xacro xml file that has no xml syntax errors and either that or a referenced file contains a "base_link" and correct paths to other necessary xacros that define the other structures in the robot. I added missing other referenced xacros. After installing these binary (sudo apt install ros-humble-irobot-create-descrption and -irobot-create-control ) packages into /opt/ros/humble/share, imported create3.urdf.xacro , successfully displayed the URDF and its structure. I also verfiied the freeCAD.CROSS Addon with another robot description package that I have (linorobot2_descripton) with suacess too. This i s a good test of the freeCAD.CROSS Addon New problem: Installed binary sudo apt install ros-humble-turtlebot4_description package in my Ubuntu 22.04/ROS 2 machine, importing the urdf/lite/turtlebot4.urdf.xacro gives this error: Running the Python command 'UrdfImport' failed: .......... |
Eventually, the issue was in the |
I am having a similar problem.
and followed the install instructions. When starting FreeCAD and then when I try to load in a .xacro file:
I have ROS Noetic installed and source my workspace from my .bashrc. I can import urdf_parser_py from the REPL:
I'm pretty new to FreeCAD, but quite familiar with ROS. |
ROS1 is not supported. |
Hi @galou, I am having this same issue when trying to load a urdf file. Here are my setup details: When I run ./FreeCAD.AppImage --appimage-extract-and-run, the image below is my result: When I try to import the urdf file, I get this error: I have tried |
Did you try to source a ROS workspace? |
Yes. I sourced my ROS workspace. Also after running colcon build, I sourced the install/setup.bash. I am still having the error. |
Can you run |
Also you can try follow https://github.com/drfenixion/freecad.overcross/tree/main/docker README.md |
I'll close this issue in case @SimeonOA doesn't react. |
After installation in FreeCAD 21.1 on both MAC VM Ubuntu 22.04 aarch64 ROS 2 Humble & on native MAC M1 arm64 OS 17.1:
On MAC VM running g FreeCAD error message there is a "no module named "urdf_parser_py"
ON native MAC, while the Addon Manager reports installed and no error messages.
But in both cases, unable to open .urdf or .xacro files .
The text was updated successfully, but these errors were encountered: