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 #38

Draft
wants to merge 32 commits into
base: master
Choose a base branch
from
Draft

Ros2 #38

Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
6242ee2
migrate CMakeLists and packagexml
PetervDooren Feb 27, 2024
35d70a9
fix some cmake errors
PetervDooren Feb 27, 2024
af6dbbf
fix amend_package placement and remove test
PetervDooren Feb 27, 2024
9e950e3
roscpp to rclcpp
PetervDooren Feb 27, 2024
8480d3c
migration
PetervDooren Feb 27, 2024
e8eaf9c
msg conversion
PetervDooren Feb 27, 2024
64efc41
comment rosparam functionality and fix typos
PetervDooren Feb 28, 2024
3604a2e
fix some more errors in logging and imports
PetervDooren Feb 28, 2024
f7fa7ba
fix time syntax
PetervDooren Feb 28, 2024
2049185
fix tf publishing
PetervDooren Feb 28, 2024
5d6e159
fix errors in rate and fsm
PetervDooren Feb 28, 2024
f413ba0
add visualization msgs dependency
PetervDooren Feb 28, 2024
01d7ecc
install executables
PetervDooren Feb 28, 2024
4bd4483
initialise rcl
PetervDooren Feb 28, 2024
966fee9
remove outdated comment
PetervDooren Feb 28, 2024
4385e47
update example for debugging
PetervDooren Mar 8, 2024
254bf97
add ros2 publisher and subscriber wrappers
PetervDooren Mar 8, 2024
2d3b3ba
integrate pub and sub wrappers in communication
PetervDooren Mar 8, 2024
bf373dc
Fix missing newline at EOF
MatthijsBurgh Mar 8, 2024
cd962f0
add node name as argument
PetervDooren Mar 8, 2024
d674459
pull changes to ros2 branch? (#40)
PetervDooren Apr 2, 2024
ec7663b
added publishers for visualizing the localization exercises
KdVos Apr 11, 2024
141123f
changed some function names to be consistent with the ROS1 branch (st…
KdVos Apr 12, 2024
0d0e359
export library
ThijsBeurskensTUE Apr 12, 2024
3c6bf56
forward declare rclcpp rate
ThijsBeurskensTUE Apr 12, 2024
b90ad1c
change library name
ThijsBeurskensTUE Apr 12, 2024
04d1e6b
add comments
PetervDooren Nov 26, 2024
c64ea07
add simple talker script to test subscribers
PetervDooren Nov 26, 2024
32e9fad
compile and adjust libraries for ros2
WiktorBocian Dec 3, 2024
3863ae4
Odometry topic and laser scan topic updated: odometry/filtered and scan
WiktorBocian Dec 6, 2024
a973357
Include library paths into the CMake file to avoid needing to set env…
WiktorBocian Dec 8, 2024
9c20c6c
Merge branch 'master' into ros2
PetervDooren Dec 12, 2024
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
Prev Previous commit
Next Next commit
update example for debugging
PetervDooren committed Mar 8, 2024
commit 4385e47d5bc57ae158af8a59890491f33d34f838
6 changes: 5 additions & 1 deletion examples/test_io.cpp
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ int main()
emc::IO io;

// Create Rate object, which will help using keeping the loop at a fixed frequency
emc::Rate r(100);
emc::Rate r(10);

// Loop while we are properly connected
while(io.ok())
@@ -20,10 +20,14 @@ int main()
emc::OdometryData odom;
if (io.readOdometryData(odom))
std::cout << "Odometry: " << odom.x << ", " << odom.y << ", " << odom.a << std::endl;
else
std::cout << "No Odom received" << std::endl;

emc::LaserData scan;
if (io.readLaserData(scan))
std::cout << "Laser: " << scan.ranges.size() << " beams" << std::endl;
else
std::cout << "No laser received" << std::endl;

// Sleep remaining time
r.sleep();