Skip to content

Commit cf5bc55

Browse files
goch4ntnralph-lange
authored
add ROS setup and microros local setup to bashrc (#392)
* 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 * Apply ralph-lange's suggestions Co-authored-by: Ralph Lange <ralph-lange@users.noreply.github.com> * Add missing empty line --------- Co-authored-by: Antón Casas <antoncasas@eprosima.com> Co-authored-by: Ralph Lange <ralph-lange@users.noreply.github.com>
1 parent 1fab13e commit cf5bc55

File tree

1 file changed

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

1 file changed

+8
-0
lines changed

_docs/tutorials/core/first_application_linux/index.md

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

66+
### Add micro-ROS environment to bashrc (optional)
67+
68+
You can add the ROS 2 and micro-ROS workspace setup files to your `.bashrc` so the files do not have to be sourced every time 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+
```
73+
6674
## Running the micro-ROS app
6775

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

0 commit comments

Comments
 (0)