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

Ros2 humble #87

Open
wants to merge 75 commits into
base: ros2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
a338827
Partially functioning port of the flatland default plugins to ros2
josephduchesne Aug 14, 2020
e1baf60
fixed plugin dependencies and segmentation faults
Aug 14, 2020
8af48ba
update flatland_server
Aug 14, 2020
a1edcf7
update flatland_viz
Aug 16, 2020
32e81cd
fixed plugin loading
Aug 17, 2020
f0cdfdd
Merge pull request #74 from neumann-nico/ros2
josephduchesne Aug 17, 2020
1c8de6d
Fixed a number of ros2 foxy specific compilation issues. Moved box2d …
josephduchesne Jun 9, 2022
5b5132a
ported flatland server launchfile to ros2 format
josephduchesne Jun 9, 2022
1dde470
Merge remote-tracking branch 'origin/ros2-plugins-port-broken' into r…
josephduchesne Jun 9, 2022
cbe05ba
Fixed minor compile error and warning
josephduchesne Jun 9, 2022
543d83d
switched CI to try ros2 foxy build
josephduchesne Jun 9, 2022
b37b2f0
brought CI inline with master branch
josephduchesne Jun 9, 2022
ad816a9
added github action
josephduchesne Jun 9, 2022
c6adc83
fixed ros2 distro name
josephduchesne Jun 9, 2022
c760ca2
Translate flatland_server server launch file to python format.
JoaoCostaIFG Nov 19, 2022
cd22a31
Fix comparison of integers of different sizes.
Nov 27, 2022
8c9cef1
Fix comparison of integers of different sizes.
Nov 27, 2022
e1245ee
Fix yaml_preprocessor test.
Nov 27, 2022
1e92c41
Fix comparison of integers of different sizes.
Nov 27, 2022
9094561
Fix dummy world tests.
Nov 27, 2022
01b54c9
Fix dummy model plugin tests.
Nov 27, 2022
c02d716
Remove used test launch file.
Nov 27, 2022
16bca86
Fix service manager test.
Nov 27, 2022
4829254
Delete unused test launch files.
Nov 27, 2022
cca04fa
Change chrono namespace to chrono_literals.
Nov 27, 2022
85d7aa8
Fix debug visualizaton tests
Nov 27, 2022
9680a94
Format test files
Nov 27, 2022
bce1f24
Fix diff drive tests.
Nov 27, 2022
17b7880
Fix tricycle drive test.
Nov 27, 2022
07d30bf
Fix model tf publisher tests.
Nov 27, 2022
5f7409a
Fix tween test
Nov 27, 2022
4191274
Fix gps test
Nov 27, 2022
288a9f4
Fix wall rate value on model tf publisher test.
Nov 27, 2022
5364f39
Fix bumber plugin tests.
Nov 27, 2022
37b72ad
Fix laser plugin tests.
Nov 27, 2022
707b8c1
WIP: Fix update timer tests.
Nov 27, 2022
d427a13
Fixed update timer tests
TheZambi Nov 28, 2022
e065cad
Format test files
TheZambi Nov 28, 2022
aa65438
Fix missing imports
TheZambi Nov 28, 2022
41ae4c3
Fix yaml test file number format (liblua version 5.3 -> 5.1).
JoaoCostaIFG Nov 28, 2022
7ba4d0a
Merge branch 'ros2-humble' into ros2-plugins-tests
JoaoCostaIFG Nov 28, 2022
e6778ff
Change layer publisher QoS policy.
JoaoCostaIFG Nov 29, 2022
66fbe4f
Merge branch 'ros2-layer-qos' into our-ros2
JoaoCostaIFG Nov 30, 2022
7695f25
Create pause tool plugin for rviz.
JoaoCostaIFG Nov 30, 2022
2158e79
Add custom interact plugin that toggles the interactive markers.
JoaoCostaIFG Nov 30, 2022
5b1e8a2
Change pause tool keybind to space.
JoaoCostaIFG Nov 30, 2022
da46a4a
Delete useless comment.
JoaoCostaIFG Nov 30, 2022
4b9c21f
Add spawn model tool as rviz plugin.
JoaoCostaIFG Nov 30, 2022
209dce7
Formated source files.
JoaoCostaIFG Nov 30, 2022
f89d16f
Make canceling the model spawning dialog revert to the default tool.
JoaoCostaIFG Dec 1, 2022
60ad94b
Add new service (ChangeRate) message.
JoaoCostaIFG Dec 12, 2022
e257131
Add change rate service message to the compilations.
JoaoCostaIFG Dec 12, 2022
b438085
Add setter for the simulation rate.
JoaoCostaIFG Dec 12, 2022
852773c
Add ChangeRate service to flatland_server
JoaoCostaIFG Dec 12, 2022
ffd6025
Add .idea and cmake-build-debug to gitignore.
JoaoCostaIFG Dec 12, 2022
1db0784
Add destructor for simulation manager
JoaoCostaIFG Dec 12, 2022
759792f
Add change rate tool
JoaoCostaIFG Dec 12, 2022
3e1c806
Add change rate tool to plugin description file
JoaoCostaIFG Dec 12, 2022
a89d687
Add icon for change rate tool
JoaoCostaIFG Dec 12, 2022
60cab67
Add change rate dialog
JoaoCostaIFG Dec 12, 2022
b2bb624
Format service and simulation managers
JoaoCostaIFG Dec 12, 2022
1edc61c
Format flatland rviz plugins
JoaoCostaIFG Dec 12, 2022
4597292
Merge pull request #90 from JoaoCostaIFG/ros2-humble
josephduchesne Dec 21, 2022
b88dcdf
Merge pull request #91 from JoaoCostaIFG/ros2-layer-qos
josephduchesne Dec 21, 2022
ddf2b49
Updates copyright licences
TheZambi Dec 30, 2022
fa06d3b
Fix cpplint errors
TheZambi Dec 30, 2022
6806f5b
Fix uncrustify
TheZambi Dec 30, 2022
201bb27
Format files
JoaoCostaIFG Dec 30, 2022
bd433ca
Fix various lint erros and formatting
JoaoCostaIFG Dec 30, 2022
31cf523
added AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS exception
josephduchesne Feb 7, 2023
b36ac17
Cleaned up header file paths and includes, and removed agressive amen…
josephduchesne Feb 7, 2023
6709f76
Merged with original repo
TheZambi Feb 7, 2023
4e2f6b0
Merge pull request #92 from JoaoCostaIFG/ros2-rviz-plugins
josephduchesne Feb 7, 2023
5d0585f
changed to c++17 and added ns to diff_drive and laser plugin
Aug 30, 2023
fc3f233
Merge pull request #100 from schmiddey/ros2-humble-ns-fix
josephduchesne Nov 22, 2023
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
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .github/workflows/industrial_ci_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI

on: [push, pull_request]

jobs:
industrial_ci:
strategy:
matrix:
env:
- {ROS_DISTRO: humble, ROS_REPO: main, AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS: true}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: 'ros-industrial/industrial_ci@master'
env: ${{matrix.env}}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ docs/_templates/*
.vscode/*
*/.vscode
.history
*/.history
*/.history
**/.idea/
**/cmake-build-debug/
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
language:
- cpp
- python
language: generic
services:
- docker
cache:
directories:
- $HOME/.ccache
env:
global:
- CCACHE_DIR=$HOME/.ccache
matrix:
- ROS_DISTRO="eloquent" #ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu BEFORE_SCRIPT='./scripts/ci_prebuild.sh' AFTER_SCRIPT='./scripts/ci_postbuild.sh'
- ROS_DISTRO="foxy" BEFORE_SCRIPT='./scripts/ci_prebuild.sh' AFTER_SCRIPT='./scripts/ci_postbuild.sh'
install:
- git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci -b master
script:
Expand Down
174 changes: 174 additions & 0 deletions flatland_box2d/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@

set(BOX2D_Collision_SRCS
src/Collision/b2BroadPhase.cpp
src/Collision/b2CollideCircle.cpp
src/Collision/b2CollideEdge.cpp
src/Collision/b2CollidePolygon.cpp
src/Collision/b2Collision.cpp
src/Collision/b2Distance.cpp
src/Collision/b2DynamicTree.cpp
src/Collision/b2TimeOfImpact.cpp
)
set(BOX2D_Collision_HDRS

include/Box2D/Collision/b2Collision.h
include/Box2D/Collision/b2Distance.h
include/Box2D/Collision/b2DynamicTree.h
include/Box2D/Collision/b2TimeOfImpact.h
)
set(BOX2D_Shapes_SRCS
src/Collision/Shapes/b2CircleShape.cpp
src/Collision/Shapes/b2EdgeShape.cpp
src/Collision/Shapes/b2ChainShape.cpp
src/Collision/Shapes/b2PolygonShape.cpp
)
set(BOX2D_Shapes_HDRS
include/Box2D/Collision/Shapes/b2CircleShape.h
include/Box2D/Collision/Shapes/b2EdgeShape.h
include/Box2D/Collision/Shapes/b2ChainShape.h
include/Box2D/Collision/Shapes/b2PolygonShape.h
include/Box2D/Collision/Shapes/b2Shape.h
)
set(BOX2D_Common_SRCS
src/Common/b2BlockAllocator.cpp
src/Common/b2Draw.cpp
src/Common/b2Math.cpp
src/Common/b2Settings.cpp
src/Common/b2StackAllocator.cpp
src/Common/b2Timer.cpp
)
set(BOX2D_Common_HDRS
include/Box2D/Common/b2BlockAllocator.h
include/Box2D/Common/b2Draw.h
include/Box2D/Common/b2GrowableStack.h
include/Box2D/Common/b2Math.h
include/Box2D/Common/b2Settings.h
include/Box2D/Common/b2StackAllocator.h
include/Box2D/Common/b2Timer.h
)
set(BOX2D_Dynamics_SRCS
src/Dynamics/b2Body.cpp
src/Dynamics/b2ContactManager.cpp
src/Dynamics/b2Fixture.cpp
src/Dynamics/b2Island.cpp
src/Dynamics/b2World.cpp
src/Dynamics/b2WorldCallbacks.cpp
)
set(BOX2D_Dynamics_HDRS
include/Box2D/Dynamics/b2Body.h
include/Box2D/Dynamics/b2ContactManager.h
include/Box2D/Dynamics/b2Fixture.h
include/Box2D/Dynamics/b2Island.h
include/Box2D/Dynamics/b2TimeStep.h
include/Box2D/Dynamics/b2World.h
include/Box2D/Dynamics/b2WorldCallbacks.h
)
set(BOX2D_Contacts_SRCS
src/Dynamics/Contacts/b2CircleContact.cpp
src/Dynamics/Contacts/b2Contact.cpp
src/Dynamics/Contacts/b2ContactSolver.cpp
src/Dynamics/Contacts/b2PolygonAndCircleContact.cpp
src/Dynamics/Contacts/b2EdgeAndCircleContact.cpp
src/Dynamics/Contacts/b2EdgeAndPolygonContact.cpp
src/Dynamics/Contacts/b2ChainAndCircleContact.cpp
src/Dynamics/Contacts/b2ChainAndPolygonContact.cpp
src/Dynamics/Contacts/b2PolygonContact.cpp
)
set(BOX2D_Contacts_HDRS
include/Box2D/Dynamics/Contacts/b2CircleContact.h
include/Box2D/Dynamics/Contacts/b2Contact.h
include/Box2D/Dynamics/Contacts/b2ContactSolver.h
include/Box2D/Dynamics/Contacts/b2PolygonAndCircleContact.h
include/Box2D/Dynamics/Contacts/b2EdgeAndCircleContact.h
include/Box2D/Dynamics/Contacts/b2EdgeAndPolygonContact.h
include/Box2D/Dynamics/Contacts/b2ChainAndCircleContact.h
include/Box2D/Dynamics/Contacts/b2ChainAndPolygonContact.h
include/Box2D/Dynamics/Contacts/b2PolygonContact.h
)
set(BOX2D_Joints_SRCS
src/Dynamics/Joints/b2DistanceJoint.cpp
src/Dynamics/Joints/b2FrictionJoint.cpp
src/Dynamics/Joints/b2GearJoint.cpp
src/Dynamics/Joints/b2Joint.cpp
src/Dynamics/Joints/b2MotorJoint.cpp
src/Dynamics/Joints/b2MouseJoint.cpp
src/Dynamics/Joints/b2PrismaticJoint.cpp
src/Dynamics/Joints/b2PulleyJoint.cpp
src/Dynamics/Joints/b2RevoluteJoint.cpp
src/Dynamics/Joints/b2RopeJoint.cpp
src/Dynamics/Joints/b2WeldJoint.cpp
src/Dynamics/Joints/b2WheelJoint.cpp
)
set(BOX2D_Joints_HDRS
include/Box2D/Dynamics/Joints/b2DistanceJoint.h
include/Box2D/Dynamics/Joints/b2FrictionJoint.h
include/Box2D/Dynamics/Joints/b2GearJoint.h
include/Box2D/Dynamics/Joints/b2Joint.h
include/Box2D/Dynamics/Joints/b2MotorJoint.h
include/Box2D/Dynamics/Joints/b2MouseJoint.h
include/Box2D/Dynamics/Joints/b2PrismaticJoint.h
include/Box2D/Dynamics/Joints/b2PulleyJoint.h
include/Box2D/Dynamics/Joints/b2RevoluteJoint.h
include/Box2D/Dynamics/Joints/b2RopeJoint.h
include/Box2D/Dynamics/Joints/b2WeldJoint.h
include/Box2D/Dynamics/Joints/b2WheelJoint.h
)
set(BOX2D_Rope_SRCS
src/Rope/b2Rope.cpp
)
set(BOX2D_Rope_HDRS
include/Box2D/Rope/b2Rope.h
)
set(BOX2D_General_HDRS
include/Box2D/Box2D.h
)

cmake_minimum_required(VERSION 3.5)
project(flatland_box2d)

find_package(ament_cmake REQUIRED)

include_directories(include)

add_library(flatland_box2d_lib SHARED
${BOX2D_General_HDRS}
${BOX2D_Joints_SRCS}
${BOX2D_Joints_HDRS}
${BOX2D_Contacts_SRCS}
${BOX2D_Contacts_HDRS}
${BOX2D_Dynamics_SRCS}
${BOX2D_Dynamics_HDRS}
${BOX2D_Common_SRCS}
${BOX2D_Common_HDRS}
${BOX2D_Shapes_SRCS}
${BOX2D_Shapes_HDRS}
${BOX2D_Collision_SRCS}
${BOX2D_Collision_HDRS}
${BOX2D_Rope_SRCS}
${BOX2D_Rope_HDRS}
)
set_target_properties(flatland_box2d_lib PROPERTIES
GIT_COMMIT_HASH f655c603ba9d83f07fc566d38d2654ba35739102
)

ament_export_targets(export_flatland_box2d HAS_LIBRARY_TARGET)
ament_export_libraries(flatland_box2d_lib)
ament_export_include_directories(include)

ament_package()

install(
TARGETS flatland_box2d_lib
EXPORT export_flatland_box2d
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)

# Mark cpp header files for installation
install(
DIRECTORY include/
DESTINATION include
FILES_MATCHING PATTERN "*.h"
)
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
* Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*/
* Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*/

#ifndef BOX2D_H
#define BOX2D_H
Expand All @@ -31,28 +31,18 @@ For discussion please visit http://box2d.org/forum

// These include files constitute the main Box2D API

#include "Box2D/Common/b2Settings.h"
#include "Box2D/Common/b2Draw.h"
#include "Box2D/Common/b2Timer.h"

#include "Box2D/Collision/Shapes/b2ChainShape.h"
#include "Box2D/Collision/Shapes/b2CircleShape.h"
#include "Box2D/Collision/Shapes/b2EdgeShape.h"
#include "Box2D/Collision/Shapes/b2ChainShape.h"
#include "Box2D/Collision/Shapes/b2PolygonShape.h"

#include "Box2D/Collision/b2BroadPhase.h"
#include "Box2D/Collision/b2Distance.h"
#include "Box2D/Collision/b2DynamicTree.h"
#include "Box2D/Collision/b2TimeOfImpact.h"

#include "Box2D/Dynamics/b2Body.h"
#include "Box2D/Dynamics/b2Fixture.h"
#include "Box2D/Dynamics/b2WorldCallbacks.h"
#include "Box2D/Dynamics/b2TimeStep.h"
#include "Box2D/Dynamics/b2World.h"

#include "Box2D/Common/b2Draw.h"
#include "Box2D/Common/b2Settings.h"
#include "Box2D/Common/b2Timer.h"
#include "Box2D/Dynamics/Contacts/b2Contact.h"

#include "Box2D/Dynamics/Joints/b2DistanceJoint.h"
#include "Box2D/Dynamics/Joints/b2FrictionJoint.h"
#include "Box2D/Dynamics/Joints/b2GearJoint.h"
Expand All @@ -64,5 +54,10 @@ For discussion please visit http://box2d.org/forum
#include "Box2D/Dynamics/Joints/b2RopeJoint.h"
#include "Box2D/Dynamics/Joints/b2WeldJoint.h"
#include "Box2D/Dynamics/Joints/b2WheelJoint.h"
#include "Box2D/Dynamics/b2Body.h"
#include "Box2D/Dynamics/b2Fixture.h"
#include "Box2D/Dynamics/b2TimeStep.h"
#include "Box2D/Dynamics/b2World.h"
#include "Box2D/Dynamics/b2WorldCallbacks.h"

#endif
Loading