Skip to content

L fp #7

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

Merged
merged 2 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,23 @@ apt update -y && apt upgrade -y
apt install python3-venv -y
apt install ros-$ROS_DISTRO-ur -y
cd ~
source /opt/ros/humble/setup.bash
```


#### Installing dependencies
1. Install support packages for the pruning environment.
```
cd ~
git clone https://github.com/lukestroh/branch_detection_ws.git
cd branch_detection_ws
colcon build --symlink-install
source install/setup.bash
cd ~
```

#### Installing this package

1. Clone this repository into your local directory:
```
git clone https://github.com/OSUrobotics/pybullet-tree-sim.git
Expand Down
10 changes: 5 additions & 5 deletions pybullet_tree_sim/urdf/trees/envy/macro/tree_macro.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
<xacro:property name="mass" value="8.0" />
<xacro:property name="scale" value="1 1 1"/>

<link name="${namespace}${tree_type}_tree${tree_id}">
<link name="${namespace}_${tree_type}_${str(tree_id).zfill(5)}">
<visual>
<geometry>
<mesh filename="./meshes/trees/envy/unlabeled/obj/${namespace}${tree_type}_tree${tree_id}.obj" scale="${scale}"/>
<mesh filename="./meshes/trees/envy/unlabeled/obj/${namespace}_${tree_type}_${str(tree_id).zfill(5)}.obj" scale="${scale}"/>
</geometry>
<material name="LightGrey">
<color rgba="0.7 0.7 0.7 1.0"/>
</material>
</visual>
<collision concave="true">
<geometry>
<mesh filename="./meshes/trees/envy/unlabeled/obj/${namespace}${tree_type}_tree${tree_id}.obj" scale="${scale}"/>
<mesh filename="./meshes/trees/envy/unlabeled/obj/${namespace}_${tree_type}_${str(tree_id).zfill(5)}.obj" scale="${scale}"/>
</geometry>
</collision>
<inertial>
Expand All @@ -33,9 +33,9 @@
</inertial>
</link>
<link name="world"/>
<joint name="${namespace}${tree_type}_tree${tree_id}_joint" type="fixed">
<joint name="${namespace}_${tree_type}_${str(tree_id).zfill(5)}_joint" type="fixed">
<parent link="${parent}"/>
<child link="${namespace}${tree_type}_tree${tree_id}"/>
<child link="${namespace}_${tree_type}_${str(tree_id).zfill(5)}"/>
<origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.0"/>
</joint>

Expand Down
1 change: 1 addition & 0 deletions pybullet_tree_sim/urdf/trees/envy/tree.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<xacro:arg name="parent" default="world" />
<!-- <xacro:arg name="xyz" default="0.0 0.0 0.0"/>
<xacro:arg name="rpy" default="0.0 0.0 0.0"/> -->


<xacro:tree
namespace="$(arg namespace)"
Expand Down