- For in depth setup instructions please refer to the SETUP GUIDE
- Check the Client side Firmware on the repo JiggyJoystickClient
source JiggyJoystick/[workspace_path]/install/setup.bash
After sourcing your package, you can run your publisher and subscriber nodes using the ros2 run
command.
ros2 run my_pubsub_pkg publisher
In a new terminal (after sourcing your workspace and ROS2 setup files):
ros2 run my_pubsub_pkg subscriber
-
Make sure both terminal windows have sourced:
- ROS2 installation:
source /opt/ros/[distro]/setup.bash
- Your workspace:
source ~/[workspace_path]/install/setup.bash
- ROS2 installation:
-
The exact node names depend on how they are defined in your
setup.py
or CMakeLists.txt file. If your node names are different, you'll need to use those names instead of "publisher" and "subscriber". -
You can verify available nodes in your package with:
ros2 pkg executables my_pubsub_pkg
-
Source the MicroROS Agent environment:
source JiggyJoystick/[workspace_path]/install/local_setup.bash
-
Run the MicroROS Agent node:
ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyUSB0