Skip to content

Commit df84d11

Browse files
committed
Test ackermann robot
1 parent 86625d3 commit df84d11

3 files changed

Lines changed: 502 additions & 13 deletions

File tree

CustomRobots/logistic_ackermann_robot/launch/logistic_ackermann_robot.launch.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,22 @@ def launch_setup(context):
2727
# =========================
2828
# ROBOT DESCRIPTION (URDF)
2929
# =========================
30-
xacro_file = os.path.join(
31-
package_dir,
32-
"models",
33-
"logistic_ackermann_robot",
34-
"logistic_ackermann_robot.urdf.xacro",
35-
)
30+
# xacro_file = os.path.join(
31+
# package_dir,
32+
# "models",
33+
# "logistic_ackermann_robot",
34+
# "logistic_ackermann_robot.urdf.xacro",
35+
# )
36+
37+
# robot_description_content = xacro.process_file(
38+
# xacro_file
39+
# ).toxml()
40+
41+
## Temporary SDF load
42+
sdf_file = os.path.join(package_dir, 'models', 'logistic_ackermann_robot', 'logistic_ackermann_robot.sdf')
43+
with open(sdf_file, 'r') as infp:
44+
robot_description_content = infp.read()
3645

37-
robot_description_content = xacro.process_file(
38-
xacro_file
39-
).toxml()
4046

4147
robot_description = {"robot_description": robot_description_content}
4248

0 commit comments

Comments
 (0)