Skip to content

Commit fbaa0e2

Browse files
authored
add ROS setup and microros local setup to bashrc
adding the setup.bash files for both ROS2 and micro-ros to the .bashrc reduces the complexity of the tutorial and makes it easier to understand
1 parent 17e4a91 commit fbaa0e2

File tree

1 file changed

+7
-0
lines changed
  • _docs/tutorials/core/first_application_linux

1 file changed

+7
-0
lines changed

_docs/tutorials/core/first_application_linux/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ source install/local_setup.bash
6363
```
6464
{% include first_application_common/agent_creation.md %}
6565

66+
### Add microros environment to bashrc (optional)
67+
68+
You can add the ROS2 and microROS workspace setup files to your bashrc so the files do not have to be sourced everytime a new command line is opened
69+
```bash
70+
echo source /opt/ros/$ROS_DISTRO/setup.bash >> ~/.bashrc
71+
echo source ~/microros_ws/install/local_setup.bash >> ~/.bashrc
72+
```
6673
## Running the micro-ROS app
6774

6875
At this point, you have both the client and the agent correctly installed in your host machine.

0 commit comments

Comments
 (0)