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

Break up bitbots wolfgang folder #607

Merged
merged 6 commits into from
Oct 23, 2024
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<arg name="world_model" default="true" description="Whether the world model should be started"/>

<!-- load the general simulator -->
<include file="$(find-pkg-share wolfgang_webots_sim)/launch/simulation.launch" />
<include file="$(find-pkg-share bitbots_webots_sim)/launch/simulation.launch" />

<!-- load teamplayer software stack -->
<include file="$(find-pkg-share bitbots_bringup)/launch/teamplayer.launch">
Expand Down
2 changes: 1 addition & 1 deletion bitbots_misc/bitbots_bringup/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<depend>bitbots_docs</depend>

<exec_depend condition="$IS_ROBOT != True">wolfgang_webots_sim</exec_depend>
<exec_depend condition="$IS_ROBOT != True">bitbots_webots_sim</exec_depend>
<exec_depend>audio_common</exec_depend>
<exec_depend>bitbots_basler_camera</exec_depend>
<exec_depend>bitbots_body_behavior</exec_depend>
Expand Down
6 changes: 3 additions & 3 deletions bitbots_misc/bitbots_containers/hlvs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ RUN cd src/bitbots_main && \
make pull-all && \
rm -rf lib/udp_bridge bitbots_misc/bitbots_containers \
lib/dynamic_stack_decider/dynamic_stack_decider_visualization bitbots_lowlevel \
bitbots_wolfgang/wolfgang_pybullet_sim lib/DynamixelSDK lib/dynamixel-workbench \
bitbots_robot/bitbots_pybullet_sim lib/DynamixelSDK lib/dynamixel-workbench \
bitbots_misc/bitbots_basler_camera && \
sed -i '/plotjuggler/d' bitbots_motion/bitbots_quintic_walk/package.xml && \
sed -i '/run_depend/d' bitbots_wolfgang/wolfgang_moveit_config/package.xml
sed -i '/run_depend/d' bitbots_robot/wolfgang_moveit_config/package.xml

# Install ros dependencies with rosdep
RUN sudo apt update && rosdep update
Expand All @@ -75,7 +75,7 @@ RUN . /opt/ros/iron/setup.sh && colcon build --cmake-args -DBUILD_TESTING=OFF

# TODO execute tests

RUN cp src/bitbots_main/bitbots_wolfgang/wolfgang_robocup_api/scripts/start.sh .local/bin/start
RUN cp src/bitbots_main/bitbots_robot/bitbots_robocup_api/scripts/start.sh .local/bin/start

# Volume for logs
VOLUME /robocup-logs
Expand Down
2 changes: 1 addition & 1 deletion bitbots_misc/bitbots_docs/docs/manual/testing/sim_test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Test Motion

.. code-block:: bash

ros2 launch wolfgang_webots_sim simulation.launch
ros2 launch bitbots_webots_sim simulation.launch
ros2 launch bitbots_bringup motion_standalone.launch sim:=true

To control walking of the robot, teleop needs to be startet as well:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.5)
project(wolfgang_pybullet_sim)
project(bitbots_pybullet_sim)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Found inconsistencies in package references that need attention

The verification revealed several issues that need to be addressed:

  • The simulation.py file still contains references to the old package structure:
    • Uses "wolfgang" as a robot type identifier
    • References "wolfgang_description" package for URDF path

These references should be updated to maintain consistency with the new package naming scheme:

  • Update robot type identifier from "wolfgang" to an appropriate new name
  • Update the URDF path to use the new package name (likely bitbots_description)
🔗 Analysis chain

LGTM: Project name change aligns with PR objectives.

The project name change from wolfgang_pybullet_sim to bitbots_pybullet_sim is consistent with the PR's goal of removing the "wolfgang" prefix.

Let's verify that all package references have been updated consistently:


The previous script execution seems to have been overwritten with different output. Let me generate a new script to properly verify the package name changes:

This script will help us:

  1. Find any remaining references to the old package name
  2. Verify the package name in package.xml
  3. Check launch files that might need updates

Let's check the launch file to ensure it's using the new package name:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any remaining references to the old package name
# Test: Search for any remaining "wolfgang_pybullet_sim" references
# Expect: No occurrences of the old name

echo "Checking for old package name references..."
rg "wolfgang_pybullet_sim"

echo "Verifying package.xml alignment..."
cat bitbots_simulation/bitbots_pybullet_sim/package.xml

Length of output: 312


Script:

#!/bin/bash
# Check for any remaining references to the old package name
echo "Checking for old package name references..."
rg "wolfgang_pybullet_sim"

echo -e "\nChecking package.xml content..."
cat bitbots_simulation/bitbots_pybullet_sim/package.xml

echo -e "\nChecking for any launch files that might reference the package..."
fd -e launch . bitbots_simulation/bitbots_pybullet_sim/

Length of output: 1709


Script:

#!/bin/bash
# Check the launch file content for any old package references
echo "Checking launch file content..."
cat bitbots_simulation/bitbots_pybullet_sim/launch/simulation.launch

# Also check if there are any other files in the package that might contain the old name
echo -e "\nChecking all files in the package directory..."
rg "wolfgang" bitbots_simulation/bitbots_pybullet_sim/

Length of output: 1545


# Add support for C++17
if(NOT CMAKE_CXX_STANDARD)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
This package provides a PyBullet simulation environment with ROS topic support for the Wolfgang Robot.
This package provides a PyBullet simulation environment with ROS topic support.

There are different options to use this:
1. Start the simulation with interface `rosrun wolfgang_pybullet_sim simulation_with_gui.py`
2. Start the simulation without interface `rosrun wolfgang_pybullet_sim simulation_headless.py`
1. Start the simulation with interface `rosrun bitbots_pybullet_sim simulation_with_gui.py`
2. Start the simulation without interface `rosrun bitbots_pybullet_sim simulation_headless.py`
3. Use the python class `Simulation` in `simulation.py` to directly run a simulation without using ROS
Comment on lines +4 to +5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Found remaining references to 'wolfgang' that need to be updated

The package rename is not complete. Found references to 'wolfgang' in simulation.py:

  • Default robot type is set to "wolfgang"
  • Robot type checks for "wolfgang"
  • URDF path references "wolfgang_description" package

These references should be updated to maintain consistency with the package rename from 'wolfgang' to 'bitbots'.

🔗 Analysis chain

Verify complete package rename across the codebase.

Let's ensure there are no remaining references to the old package name.


Let me check the content of these files to verify if there are any remaining references to the old package name.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for any remaining references to the old package name
echo "Checking for remaining references to wolfgang_pybullet_sim..."
rg "wolfgang_pybullet_sim" --type-add 'launch:*.launch' --type-add 'xml:*.xml' -t python -t launch -t xml

# Check if the package name is consistently used in launch files
echo "Checking launch files for package references..."
fd . -e launch -e xml -e py | xargs grep -l "pybullet_sim"

Length of output: 898


Script:

#!/bin/bash
# Check content of the identified files for any remaining 'wolfgang' references
echo "=== Checking simulation.py ==="
cat bitbots_simulation/bitbots_pybullet_sim/bitbots_pybullet_sim/simulation.py | grep -i "wolfgang"

echo -e "\n=== Checking simulation.launch ==="
cat bitbots_simulation/bitbots_pybullet_sim/launch/simulation.launch | grep -i "wolfgang"

echo -e "\n=== Checking package.xml ==="
cat bitbots_simulation/bitbots_pybullet_sim/package.xml | grep -i "wolfgang"

echo -e "\n=== Checking simulation_headless.py ==="
cat bitbots_simulation/bitbots_pybullet_sim/scripts/simulation_headless.py | grep -i "wolfgang"

echo -e "\n=== Checking simulation_with_gui.py ==="
cat bitbots_simulation/bitbots_pybullet_sim/scripts/simulation_with_gui.py | grep -i "wolfgang"

echo -e "\n=== Checking setup.py ==="
cat bitbots_simulation/bitbots_pybullet_sim/setup.py | grep -i "wolfgang"

echo -e "\n=== Checking ros_interface.py ==="
cat bitbots_simulation/bitbots_pybullet_sim/src/bitbots_pybullet_sim/ros_interface.py | grep -i "wolfgang"

Length of output: 1442

🧰 Tools
🪛 LanguageTool

[uncategorized] ~4-~4: You might be missing the article “an” here.
Context: ... use this: 1. Start the simulation with interface `rosrun bitbots_pybullet_sim simulation...

(AI_EN_LECTOR_MISSING_DETERMINER_AN)


[uncategorized] ~5-~5: You might be missing the article “an” here.
Context: ...gui.py2. Start the simulation without interfacerosrun bitbots_pybullet_sim simulation...

(AI_EN_LECTOR_MISSING_DETERMINER_AN)


Shortcuts in gui:
Expand All @@ -15,4 +15,4 @@ Shortcuts in gui:

`s` hold to step while pausing

`n` gravity on/off
`n` gravity on/off
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from transforms3d.euler import euler2quat, quat2euler
from transforms3d.quaternions import qinverse, quat2mat, rotate_vector

from wolfgang_pybullet_sim.terrain import Terrain
from bitbots_pybullet_sim.terrain import Terrain


class Simulation:
Expand Down Expand Up @@ -177,7 +177,7 @@ def load_models(self):
# Load field

rospack = rospkg.RosPack()
path = os.path.join(rospack.get_path("wolfgang_pybullet_sim"), "models")
path = os.path.join(rospack.get_path("bitbots_pybullet_sim"), "models")
p.setAdditionalSearchPath(path) # needed to find field model
self.field_index = p.loadURDF("field/field.urdf")

Expand Down
17 changes: 17 additions & 0 deletions bitbots_simulation/bitbots_pybullet_sim/launch/simulation.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<launch>
<arg name="gui" default="true"/>

<group if="$(var gui)">
<node pkg="bitbots_pybullet_sim" exec="simulation_with_gui.py" name="pybullet_sim" output="screen">
<param from="$(find-pkg-share bitbots_pybullet_sim)/config/config.yaml"/>
</node>
</group>
<group unless="$(var gui)">
<node pkg="bitbots_pybullet_sim" exec="simulation_headless.py" name="pybullet_sim" output="screen">
<param from="$(find-pkg-share bitbots_pybullet_sim)/config/config.yaml"/>
</node>
</group>
<include file="$(find-pkg-share bitbots_webots_sim)/launch/imu_filter_sim.launch">
<arg name="sim" value="true"/>
</include>
</launch>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>wolfgang_pybullet_sim</name>
<name>bitbots_pybullet_sim</name>
<version>1.3.0</version>
<description>Simulation environment using PyBullet for Wolfgang robot.</description>
<description>Simulation environment using PyBullet.</description>

<maintainer email="[email protected]">Marc Bestmann </maintainer>
<maintainer email="[email protected]">Hamburg Bit-Bots</maintainer>
Expand All @@ -21,15 +21,15 @@
<depend>rosgraph_msgs</depend>
<depend>std_msgs</depend>
<depend>bitbots_docs</depend>
<depend>wolfgang_webots_sim</depend>
<depend>bitbots_webots_sim</depend>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Inconsistent package renaming detected across the codebase

The verification reveals that there are still several packages that retain the "wolfgang" prefix and are actively used as dependencies:

  • wolfgang_moveit_config (which also depends on wolfgang_description)
  • wolfgang_description
  • wolfgang_animations
  • These packages are also referenced as dependencies in bitbots_bringup/package.xml

This indicates that while some packages like wolfgang_webots_sim have been renamed to use the bitbots_ prefix, other core packages still maintain the wolfgang_ prefix, showing an inconsistent approach to the package renaming strategy.

🔗 Analysis chain

Dependency update is consistent with package renaming.

The dependency has been properly updated from wolfgang_webots_sim to bitbots_webots_sim, maintaining consistency with the overall prefix removal strategy.

Let's verify that all wolfgang references have been removed from dependencies:


Let me check the content of these package.xml files to understand if these are actual inconsistencies or if they are separate packages that intentionally retain the "wolfgang" prefix.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any remaining "wolfgang" references in package.xml files
# Expected: No matches should be found

rg -l "wolfgang" --type xml

Length of output: 210


Script:

#!/bin/bash
# Check the content of the found package.xml files
for file in bitbots_robot/wolfgang_moveit_config/package.xml bitbots_robot/wolfgang_description/package.xml bitbots_robot/wolfgang_animations/package.xml bitbots_misc/bitbots_bringup/package.xml; do
    echo "=== $file ==="
    cat "$file"
    echo -e "\n"
done

Length of output: 6992

<depend>tf_transformations</depend>
<depend>python3-transforms3d</depend>
<depend>python3-numpy</depend>

<export>
<bitbots_documentation>
<status>unknown</status>
<language>python</language>
</bitbots_documentation>
<bitbots_documentation>
<status>unknown</status>
<language>python</language>
</bitbots_documentation>
</export>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import threading

import rclpy
from bitbots_pybullet_sim.ros_interface import ROSInterface
from bitbots_pybullet_sim.simulation import Simulation
Comment on lines +5 to +6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

I can now generate the final response based on the gathered information. The package structure shows a potential issue with duplicate module files that needs to be addressed.

Module duplication detected - needs cleanup

The import statements are correct, but there's a concerning duplication of the imported modules in two locations:

  • bitbots_simulation/bitbots_pybullet_sim/bitbots_pybullet_sim/ros_interface.py
  • bitbots_simulation/bitbots_pybullet_sim/src/bitbots_pybullet_sim/ros_interface.py

While the package.xml is properly set up with the correct package name bitbots_pybullet_sim, having duplicate modules in different locations could lead to import confusion and potential runtime issues. The package should maintain a single source of truth for these modules.

Recommendation:

  • Keep only one copy of the modules, preferably in the src/bitbots_pybullet_sim/ directory as per standard Python package structure
  • Remove the duplicate files from bitbots_simulation/bitbots_pybullet_sim/bitbots_pybullet_sim/
🔗 Analysis chain

LGTM! Verify package setup.

The import changes align with the PR objective of removing the "wolfgang" prefix. The functionality remains unchanged.

Let's verify the package setup:


Let me gather more information to verify the package structure, particularly focusing on the package.xml location and content.

The previous results showed multiple copies of ros_interface.py and simulation.py in different locations, which could indicate a potential issue. We need to verify the correct package structure and ensure there's no duplication that could cause import conflicts.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the package structure is properly set up
# and that the imported modules exist in the new location

# Test 1: Check if the package.xml exists and contains the correct package name
echo "Checking package.xml..."
rg -l "bitbots_pybullet_sim" "**/package.xml"

# Test 2: Verify the existence of the imported modules
echo "Checking for imported modules..."
fd -t f "ros_interface.py|simulation.py" -x echo "Found: {}"

Length of output: 557


Script:

#!/bin/bash
# Let's check the exact location of package.xml and its content
echo "Searching for package.xml in bitbots_simulation directory..."
fd "package.xml" bitbots_simulation/

echo -e "\nChecking content of found package.xml files..."
fd "package.xml" bitbots_simulation/ -x cat {}

echo -e "\nVerifying the correct module structure..."
# Check if there are multiple copies of the same modules
ls -R bitbots_simulation/bitbots_pybullet_sim/

Length of output: 5523

from rclpy.node import Node
from wolfgang_pybullet_sim.ros_interface import ROSInterface
from wolfgang_pybullet_sim.simulation import Simulation

if __name__ == "__main__":
rclpy.init(args=None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import threading

import rclpy
from bitbots_pybullet_sim.ros_interface import ROSInterface
from bitbots_pybullet_sim.simulation import Simulation
from rclpy.node import Node
from wolfgang_pybullet_sim.ros_interface import ROSInterface
from wolfgang_pybullet_sim.simulation import Simulation

if __name__ == "__main__":
rclpy.init(args=None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from catkin_pkg.python_setup import generate_distutils_setup

d = generate_distutils_setup(
packages=["wolfgang_pybullet_sim"],
packages=["bitbots_pybullet_sim"],
# scripts=['bin/myscript'],
package_dir={"": "src"},
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This package bridges between the [official Humanoid League RoboCup Proto3 API](https://cdn.robocup.org/hl/wp/2021/05/v-hsc_simulator_api_v1.0.pdf) and our ROS topics for the Wolfgang Robot.
This package bridges between the [official Humanoid League RoboCup Proto3 API](https://cdn.robocup.org/hl/wp/2021/05/v-hsc_simulator_api_v1.0.pdf) and our ROS topics.
62 changes: 62 additions & 0 deletions bitbots_simulation/bitbots_robocup_api/config/bitbots_walk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"name": "Bit-Bots",
"players": {
"1": {
"proto": "Wolfgang",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Update prototype name to align with PR objectives

The proto field still contains "Wolfgang" which contradicts the PR's goal of removing Wolfgang references.

-      "proto": "Wolfgang",
+      "proto": "BitBots"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"proto": "Wolfgang",
"proto": "BitBots",

"dockerTag": "latest",
"dockerCmd": "roslaunch bitbots_robocup_api robocup_walk.launch",
"halfTimeStartingPose": {
"translation": [
-3.6,
-3.20,
0.43
],
"rotation": [
0.13,
-0.13,
-0.98,
-1.57
]
},
"reentryStartingPose": {
"translation": [
-3.6,
-3.20,
0.43
],
"rotation": [
0.0,
-0.0,
-1.0,
-1.57
]
},
"shootoutStartingPose": {
"translation": [
2.6,
0,
0.43
],
"rotation": [
0,
0.98,
0.13,
0.26
]
},
"goalKeeperStartingPose": {
"translation": [
-4.47,
0,
0.43
],
"rotation": [
-0.13,
0,
0.98,
3.14
]
}
}
}
}
Comment on lines +1 to +62
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Consider extracting common values into configuration constants

The robot height (0.43) is repeated across all poses. Consider restructuring the JSON to define common values at the root level to improve maintainability.

 {
   "name": "Bit-Bots",
+  "constants": {
+    "robotHeight": 0.43
+  },
   "players": {
     "1": {
       "proto": "Wolfgang",
       "dockerTag": "latest",
       "dockerCmd": "roslaunch bitbots_robocup_api robocup_walk.launch",
       "halfTimeStartingPose": {
         "translation": [
           -3.6,
           -3.20,
-          0.43
+          "${constants.robotHeight}"
         ],
         // ... similar changes for other poses

Committable suggestion was skipped due to low confidence.

Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?xml version="1.0"?>
<launch>
<node pkg="hlvs_player" exec="hlvs_player" output="screen">
<param name="devices_file" value="$(find-pkg-share wolfgang_robocup_api)/config/devices.json"/>
<param name="devices_file" value="$(find-pkg-share bitbots_robocup_api)/config/devices.json"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

All referenced files exist, but command_proxy needs path update

Based on the verification results:

  1. devices.json exists at the correct location: bitbots_simulation/bitbots_robocup_api/config/devices.json
  2. imu_filter_sim.launch exists at the correct location: bitbots_simulation/bitbots_webots_sim/launch/imu_filter_sim.launch
  3. However, command_proxy.py is still under the old package structure: bitbots_simulation/bitbots_robocup_api/wolfgang_robocup_api/command_proxy.py

The launch file needs to be updated to reflect the correct path for the command_proxy node, as it's still located under the wolfgang_robocup_api directory instead of being moved to the new package structure.

🔗 Analysis chain

Verify referenced files exist in new package locations.

The package references have been consistently updated from wolfgang_* to bitbots_*. Let's verify that all referenced files exist in their new locations.

Also applies to: 11-11, 15-15


Let me try a different approach to verify the files since the previous paths weren't found. Let's search from the repository root.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that all referenced files exist in their new locations

# Test 1: Check if devices.json exists
echo "Checking for devices.json..."
fd -t f "devices.json" -p "bitbots_robocup_api/config"

# Test 2: Check if command_proxy executable exists
echo "Checking for command_proxy..."
fd -t f "command_proxy" -p "bitbots_robocup_api"

# Test 3: Check if imu_filter_sim.launch exists
echo "Checking for imu_filter_sim.launch..."
fd -t f "imu_filter_sim.launch" -p "bitbots_webots_sim/launch"

Length of output: 715


Script:

#!/bin/bash
# Search for the files from repository root
echo "Checking for devices.json..."
fd -t f "devices.json"

echo -e "\nChecking for command_proxy..."
fd -t f "command_proxy"

echo -e "\nChecking for imu_filter_sim.launch..."
fd -t f "imu_filter_sim.launch"

# Also let's check the directory structure to understand the package layout
echo -e "\nChecking directory structure..."
ls -R bitbots_simulation/

Length of output: 10080

<remap from="camera/image_raw" to="camera/image_proc"/>
<remap from="imu/data" to="imu/data_raw"/>
</node>
<!-- The hlvs_player expects the joint command positions as a 'JointState' message.
We therfore need to convert the messages from our custom 'JointCommand' message to the
more common 'JointState' layout. -->
<node pkg="wolfgang_robocup_api" exec="command_proxy" output="screen">
<node pkg="bitbots_robocup_api" exec="command_proxy" output="screen">
<remap from="input" to="DynamixelController/command"/>
<remap from="output" to="joint_command"/>
</node>
<include file="$(find-pkg-share wolfgang_webots_sim)/launch/imu_filter_sim.launch" />
<include file="$(find-pkg-share bitbots_webots_sim)/launch/imu_filter_sim.launch" />
</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</group>

<!-- load the robocup api -->
<include file="$(find-pkg-share wolfgang_robocup_api)/launch/wolfgang_robocup_api_bridge.launch" />
<include file="$(find-pkg-share bitbots_robocup_api)/launch/bitbots_robocup_api_bridge.launch" />

<!-- launch the team player -->
<include file="$(find-pkg-share bitbots_bringup)/launch/teamplayer.launch">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<launch>
<include file="$(find wolfgang_robocup_api)/launch/wolfgang_robocup_api_bridge.launch" />
<include file="$(find bitbots_robocup_api)/launch/bitbots_robocup_api_bridge.launch" />

<include file="$(find bitbots_bringup)/launch/motion_standalone.launch">
<arg name="sim" value="true" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>wolfgang_robocup_api</name>
<name>bitbots_robocup_api</name>
<version>0.0.0</version>
<description>Bridge between the official Humanoid League RoboCup Proto3 API
and our ROS topics for the Wolfgang Robot
Expand All @@ -23,7 +23,7 @@
<depend>hlvs_player</depend>
<depend>rclpy</depend>
<depend>sensor_msgs</depend>
<depend>wolfgang_webots_sim</depend>
<depend>bitbots_webots_sim</depend>
<depend>protobuf-dev</depend>
<depend>urdfdom_py</depend>
<depend>topic_tools</depend>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ sed -i "/^ target_ip:/s/^.*$/ target_ip: $ROBOCUP_MIRROR_SERVER_IP/" $TEAM
# Start ROS #
#############

exec ros2 launch wolfgang_robocup_api robocup_teamplayer.launch record:=$RECORD
exec ros2 launch bitbots_robocup_api robocup_teamplayer.launch record:=$RECORD
4 changes: 4 additions & 0 deletions bitbots_simulation/bitbots_robocup_api/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[develop]
script_dir=$base/lib/bitbots_robocup_api
[install]
install_scripts=$base/lib/bitbots_robocup_api
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from setuptools import find_packages, setup

package_name = "wolfgang_robocup_api"
package_name = "bitbots_robocup_api"

setup(
name=package_name,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.5)
project(wolfgang_webots_sim)
project(bitbots_webots_sim)

# Add support for C++17
if(NOT CMAKE_CXX_STANDARD)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from wolfgang_webots_sim.webots_robot_controller import RobotController
from wolfgang_webots_sim.webots_supervisor_controller import SupervisorController
from bitbots_webots_sim.webots_robot_controller import RobotController
from bitbots_webots_sim.webots_supervisor_controller import SupervisorController


class RobotSupervisorController(SupervisorController, RobotController):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Run the script to adapt the urdf to be usable by webots2urdf

.. code-block:: bash

roscd wolfgang_webots_sim
roscd bitbots_webots_sim
python scripts/fix_urdf_for_webots.py ../wolfgang_description/urdf/robot.urdf webots_robot.urdf

Run the conversion script from urdf to proto file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
<node pkg="tf2_ros" exec="static_transform_publisher" name="donna_map" args="0 0 0 0 0 0 1 map donna/map" />
<node pkg="tf2_ros" exec="static_transform_publisher" name="melody_map" args="0 0 0 0 0 0 1 map melody/map" />

<node pkg="wolfgang_webots_sim" exec="localization_faker.py" name="localization_faker"/>
</launch>
<node pkg="bitbots_webots_sim" exec="localization_faker.py" name="localization_faker"/>
</launch>
Loading
Loading