# How to run code in ROSDS IDE?

**URL:** <https://get-help.theconstruct.ai/t/how-to-run-code-in-rosds-ide/10270>\
**Category:** ROSDS Support\
**Created:** [May 29, 2021, 1:32pm UTC](https://get-help.theconstruct.ai/t/how-to-run-code-in-rosds-ide/10270 "2021-05-29T13:32:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![orionrobots](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/orionrobots/32/2792_2.png) [@orionrobots](https://get-help.theconstruct.ai/u/orionrobots)\
**Post date:** [May 29, 2021, 1:32pm UTC](https://get-help.theconstruct.ai/t/how-to-run-code-in-rosds-ide/10270/1 "2021-05-29T13:32:44Z")

</div>

The independant terminal seems to have packages that the terminal in the IDE does not. Almost like they are running in different VM’s.

When I start the IDE terminal I see: `bash: /home/simulations/public_sim_ws/devel/setup.bash: No such file or directory`.

No ROS commands work - I.E. rostopic list:

```auto
user:~$ rostopic list
bash: rostopic: command not found

```

This works just fine in the independent terminal. They also have different hostnames and don’t see the same files.

---

<div class="post-metadata">

**Author:** ![marco.nc.arruda](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/marco.nc.arruda/32/2639_2.png) [@marco.nc.arruda](https://get-help.theconstruct.ai/u/marco.nc.arruda)\
**Post date:** [May 29, 2021, 2:20pm UTC](https://get-help.theconstruct.ai/t/how-to-run-code-in-rosds-ide/10270/2 "2021-05-29T14:20:03Z")

</div>

Hi @orionrobots ,

You are right, we don’t recommend to use IDE terminals, because they are not running the ROS environment prepared for the web shells or the simulation.

I am taking it as a suggestion for our next improvements.

Thanks for posting,

Please, let me know if I can help you with anything else.

Regards

---

<div class="post-metadata">

**Author:** ![orionrobots](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/orionrobots/32/2792_2.png) [@orionrobots](https://get-help.theconstruct.ai/u/orionrobots)\
**Post date:** [May 29, 2021, 7:46pm UTC](https://get-help.theconstruct.ai/t/how-to-run-code-in-rosds-ide/10270/3 "2021-05-29T19:46:41Z")

</div>

One thing that would be handy would be a reference to the robot. IE - although I can use rostopic list to figure out that /scan is the laser scanner, the specs are not obvious. The training robot had a scanner with a ranges array of 0-719, which had a 180 degree sweep. I think that this robot has a scanner with ranges 0-359, which may be a 360 degree sweep, but not sure, and not sure if it’s correct to assume that 0 is forward and 90 is left or right with respect to the robot. This is **ROS Basics Real Robot Project**.

This kind of reference info (along with API reference material for rospy) would definitely help here.

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [May 31, 2021, 9:31am UTC](https://get-help.theconstruct.ai/t/how-to-run-code-in-rosds-ide/10270/4 "2021-05-31T09:31:58Z")

</div>

The following post might help.

> [@How to find the front position of a LaserScan](https://get-help.robotigniteacademy.com/t/how-to-find-the-front-position-of-a-laserscan/10255):
>
> Hi there, I am facing an issue with basic rosject, everything is running fine but is there a way to find laserscan values, I mean how can I find whether the front is 0 or 90 and right? Thanks

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [April 9, 2023, 2:52am UTC](https://get-help.theconstruct.ai/t/how-to-run-code-in-rosds-ide/10270/5 "2023-04-09T02:52:14Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [April 24, 2023, 3:17pm UTC](https://get-help.theconstruct.ai/t/how-to-run-code-in-rosds-ide/10270/6 "2023-04-24T15:17:21Z")

</div>



---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [April 25, 2023, 8:42am UTC](https://get-help.theconstruct.ai/t/how-to-run-code-in-rosds-ide/10270/7 "2023-04-25T08:42:30Z")

</div>


